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

Adapt MySql schema statements to SingleStore statements #5

Open
mitchwadair opened this issue Dec 6, 2024 · 0 comments
Open

Adapt MySql schema statements to SingleStore statements #5

mitchwadair opened this issue Dec 6, 2024 · 0 comments

Comments

@mitchwadair
Copy link
Collaborator

12 different instructions came from MySQL:

  • Create/Rename/Drop Table
  • Create/Drop Column
  • Create/Drop Index
  • Add/Delete Constraints
  • Add/Alter/Delete composed primary keys

Convert the mysql syntax to singlestore syntax in sqlgeneration.ts file from drizzle-kit and remove the ones that are not supported by singlestore, if any. Ask SQrL the differences between these MySQL type of statements and SingleStore.

It is also needed to adapt the create table statements on the schema tests in drizzle-kit/tests/singlestore-generated.test.ts

https://github.com/singlestore-labs/s2-drizzle-orm-dev/blob/main/drizzle-kit/tests/singlestore-generated.test.ts

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

No branches or pull requests

1 participant