Change DB Client to a more dynamic alternative Kysely #7
Closed
Adammatthiesen
started this conversation in
Proposal
Replies: 3 comments
-
|
Early stages of this project have been in progress here: withstudiocms/studiocms#963 |
Beta Was this translation helpful? Give feedback.
0 replies
-
|
Moved to Stage 2: #8 |
Beta Was this translation helpful? Give feedback.
0 replies
-
|
Moved to Stage 3: #9 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Body
Moved to Stage 2: #8
Summary
I propose we move to a new db client that could offer us a unified client that will work properly across different db dialects
Background & Motivation
Currently we rely on AstroDB and drizzle-orm, which in their current configuration has some minor issues, but even once it technically supports multiple dialects there would be the issue of slight difference in the resulting drizzle client between dialects. This will make it difficult to properly support AstroDB once user's will be able to swap out their driver (since each table would need a different schema based on the current dialect).
Kysely on the other-hand, has support for all the same db dialects but with a single unified interface to work with that supports many different dialects with easy switching during initialization. Kysely also has a fairly similar interface but without all the extra helper imports needed to build a db query.
Goals
@withstudiocmsscoped package that will include:Bonus
Additional info
Beta Was this translation helpful? Give feedback.
All reactions