Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WIP: Add initial schema and storage provider for CockroachDB #2833

Closed
wants to merge 1 commit into from

Conversation

JAORMX
Copy link
Collaborator

@JAORMX JAORMX commented Nov 8, 2022

This creates an initial schema for CRDB by mirroring a lot of the
existing constructs from the MySQL storage provider. It also adds
scripts and test code to run unit and integration tests with CockRoachDB

While this lead to a lot of code duplication, the intention is to
address that in a separate PR in order to keep the work separated into
logical batches. Doing all the refactoring to create common constructs
for SQL backends would lead to a patch too big for folks to review in a
reasonable time and would create more risk.

The plan, thus, is as follows:

  • Create CRDB storage provider (this PR).
  • Abstract SQL admin storage to its own package.
  • Abstract Statement cache into its own package.
  • Abstract (Log)Tree Transaction code into its own package.

This way, we could have re-usable parts for other SQL providers.

Checklist

@JAORMX JAORMX requested a review from a team as a code owner November 8, 2022 07:41
@JAORMX JAORMX requested a review from zkpjedi November 8, 2022 07:41
@JAORMX JAORMX changed the title Add initial schema and storage provider for CockroachDB WIP: Add initial schema and storage provider for CockroachDB Nov 8, 2022
@JAORMX JAORMX force-pushed the crdb branch 4 times, most recently from 0702e94 to 96d85a7 Compare November 8, 2022 10:57
@roger2hk
Copy link
Contributor

roger2hk commented Nov 8, 2022

@AlCutter AlCutter requested review from AlCutter and removed request for zkpjedi November 8, 2022 11:45
@JAORMX JAORMX force-pushed the crdb branch 3 times, most recently from ec49003 to 9851984 Compare November 9, 2022 13:32
This creates an initial schema for CRDB by mirroring a lot of the
existing constructs from the MySQL storage provider. It also adds
scripts and test code to run unit and integration tests with CockRoachDB

While this lead to a lot of code duplication, the intention is to
address that in a separate PR in order to keep the work separated into
logical batches. Doing all the refactoring to create common constructs
for SQL backends would lead to a patch too big for folks to review in a
reasonable time and would create more risk.

The plan, thus, is as follows:

[x] Create CRDB storage provider (this PR).
[ ] Abstract SQL admin storage to its own package.
[ ] Abstract Statement cache into its own package.
[ ] Abstract (Log)Tree Transaction code into its own package.

This way, we could have re-usable parts for other SQL providers.

Signed-off-by: Juan Antonio Osorio <[email protected]>
@JAORMX
Copy link
Collaborator Author

JAORMX commented Nov 10, 2022

superceded by #2834

@JAORMX JAORMX closed this Nov 10, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants