Skip to content

Conversation

@bobbai00
Copy link
Contributor

This PR adds dao to the micro-services.

Dependency in the micro-services

No dependencies.

What items does it have

dao stands for database object. It contains

  • jooq code generator, written in core/micro-services/dao/src/main/scala/edu/uci/ics/texera/JooqCodeGeneration.java, come from core/util/src/main/java/edu/uci/ics/util/RunCodegen.java
  • SqlServer which is used to connect the DB, written in core/micro-services/dao/src/main/scala/edu/uci/ics/texera/SqlServer.java, come from core/amber/src/main/scala/edu/uci/ics/texera/web/SqlServer.java
  • texera_ddl.sql and all database update script, putted in core/micro-services/dao/src/main/resources/sql, come from core/scripts/sql

@bobbai00 bobbai00 requested a review from Yicong-Huang October 24, 2024 13:45
@bobbai00 bobbai00 self-assigned this Oct 24, 2024
@bobbai00 bobbai00 added the refactor Refactor the code label Oct 24, 2024
@bobbai00 bobbai00 force-pushed the jiadong-add-dao-micro-services branch from c6d00d5 to 3fd7536 Compare October 24, 2024 14:35
Copy link
Contributor

@Yicong-Huang Yicong-Huang left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  • remove resources, remove codegen, remove config.
  • change package name to dao.
  • change the SQLServer to take parameters.
  • let util/codeGen generate to this codebase.

@bobbai00 bobbai00 requested a review from Yicong-Huang October 24, 2024 23:57
Copy link
Contributor

@Yicong-Huang Yicong-Huang left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@bobbai00 bobbai00 requested a review from Yicong-Huang October 25, 2024 16:14
@bobbai00 bobbai00 merged commit 316e0bf into master Oct 30, 2024
@bobbai00 bobbai00 deleted the jiadong-add-dao-micro-services branch October 30, 2024 03:53
bobbai00 added a commit that referenced this pull request Nov 2, 2024
Since texera_ddl.sql is updated in #2930 , and #2960 is merged after it,
the jooq-generated classes in `micro-services/dao` is not updated. This
PR make the `micro-services/dao` up-to-date.
PurelyBlank pushed a commit that referenced this pull request Dec 4, 2024
This PR adds `dao` to the `micro-services`.

### Dependency in the micro-services
No dependencies. 

### What items does it have

`dao` stands for database object. It contains 
- jooq code generator, written in
`core/micro-services/dao/src/main/scala/edu/uci/ics/texera/JooqCodeGeneration.java`,
come from `core/util/src/main/java/edu/uci/ics/util/RunCodegen.java`
- SqlServer which is used to connect the DB, written in
`core/micro-services/dao/src/main/scala/edu/uci/ics/texera/SqlServer.java`,
come from
`core/amber/src/main/scala/edu/uci/ics/texera/web/SqlServer.java`
- `texera_ddl.sql` and all database update script, putted in
`core/micro-services/dao/src/main/resources/sql`, come from
`core/scripts/sql`
PurelyBlank pushed a commit that referenced this pull request Dec 4, 2024
Since texera_ddl.sql is updated in #2930 , and #2960 is merged after it,
the jooq-generated classes in `micro-services/dao` is not updated. This
PR make the `micro-services/dao` up-to-date.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

refactor Refactor the code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants