-
Notifications
You must be signed in to change notification settings - Fork 141
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 experimental db0
driver
#476
Conversation
Thanks for the PR dear @zsilbi it is a good start. TBH i have to go over it for next steps (and we need a newer db0 release since it is stall in current experimental version) but some pointers if you can help in the meantime:
|
Should it always try to create the table before the first query, or only after the first failed query and then retry? To make it easier to configure, |
i wasn't thinking of it sounds a nice idea!
i was thinking of it actually! feel free to open an issue in db0 to support this. |
I got this working. It also stores the promise of the
I'll change it to use pglite when it will be available: unjs/db0#110 |
287a712
to
7f9b898
Compare
b6ca031
to
c11c9f9
Compare
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #476 +/- ##
==========================================
- Coverage 65.05% 59.87% -5.18%
==========================================
Files 39 40 +1
Lines 4055 3270 -785
Branches 487 555 +68
==========================================
- Hits 2638 1958 -680
+ Misses 1408 1303 -105
Partials 9 9 ☔ View full report in Codecov by Sentry. |
db0
)db0
driver
Hello!
Resolves #400
I added tests for
libsql
(local file) andpostgresql
(only runs when the connection string in the.env
is present.And I also updated the docs.
Notes:
Inlining db0 in the vitest config was necessary because of this error from the postgres test
Related: unjs/db0#62 unjs/db0#63