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

operation-node-transformer fixed: #107

Merged
merged 1 commit into from
Jul 3, 2022
Merged

operation-node-transformer fixed: #107

merged 1 commit into from
Jul 3, 2022

Conversation

borissuska
Copy link

I was facing a bug when I was using createScheme. I miss the "if not exists" part of compiled query even I use ifNotExists method of CreateSchemaBuilder.

Then I do following fixes:

  • added copy of ifNotExists property in transformCreateSchema
  • added copy of orderBy and limit properties in transformDeleteQuery (because of TEST_TRANSFORMER=1 npm run test fails)

I've added create/drop schema tests too to prevent regression of this bug in future. Have to be tested with TEST_TRANSFORMER environment variable set of course.

Correct me if I'm wrong, SQLLite doesn't support schemas as other DBs do, right? I omit schema tests for it.

- added copy of orderBy and limit properties in transformDeleteQuery
- added copy of ifNotExists property in transformCreateSchema
@koskimas koskimas merged commit ceb59c3 into kysely-org:master Jul 3, 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