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

feat: add D1 api driver + add D1 migration cli #11

Merged
merged 19 commits into from
Jul 9, 2023
Merged

Conversation

hi-ogawa
Copy link
Owner

@hi-ogawa hi-ogawa commented Jul 9, 2023

The idea is that it would be very convenient if we can access d1 from nodejs runtime e.g. for local file system based migration cli.

todo

server bundle analyze

image

image

  • after

image

@hi-ogawa hi-ogawa marked this pull request as draft July 9, 2023 02:38
@hi-ogawa hi-ogawa force-pushed the feat-d1-driver branch 2 times, most recently from 52015d6 to bf9e047 Compare July 9, 2023 02:49
@hi-ogawa hi-ogawa changed the title feat: add nodejs d1 driver feat: add unofficial d1 driver Jul 9, 2023
@hi-ogawa hi-ogawa changed the title feat: add unofficial d1 driver feat: add unofficial d1 api driver Jul 9, 2023
@hi-ogawa hi-ogawa changed the title feat: add unofficial d1 api driver feat: add migration cli Jul 9, 2023
@hi-ogawa hi-ogawa changed the title feat: add migration cli feat: add d1 migration cli Jul 9, 2023
@hi-ogawa hi-ogawa changed the title feat: add d1 migration cli feat: add D1 migration cli Jul 9, 2023
@hi-ogawa hi-ogawa changed the title feat: add D1 migration cli feat: add D1 api driver + add D1 migration cli Jul 9, 2023
@hi-ogawa hi-ogawa marked this pull request as ready for review July 9, 2023 07:14
@hi-ogawa hi-ogawa merged commit 921135c into main Jul 9, 2023
@hi-ogawa hi-ogawa deleted the feat-d1-driver branch July 9, 2023 10:24
hi-ogawa added a commit that referenced this pull request Jul 11, 2023
(EDIT: commit history modified to fix "merge" message)

* feat: add nodejs d1 driver

* refactor: organize code for migration cli

* chore: minor rename

* feat: add migrate-cli.ts

* refactor: replace DIY sql template with kysely

* chore: comment

* chore: replace kysely-d1

* chore: TODO

* fix: workaround multi statement migrations

* chore: readme

* chore: tweak sql split marker

* chore: simplify migration scripts

* chore: tweak error message

* chore: readme

* chore: comment

* chore: tweak error handling

* chore: demo kysely query builder

* chore: comment

* fix: fix db counter update
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.

1 participant