feat(drizzle): abstract shared sql code to new package (#7320)

- Abstract shared sql code to a new drizzle package
- Adds sqlite package, not ready to publish until drizzle patches some
issues
- Add `transactionOptions` to allow customizing or disabling db
transactions
- Adds "experimental" label to the `schemaName` property until drizzle
patches an issue
This commit is contained in:
Dan Ribbens
2024-07-24 12:43:29 -04:00
committed by GitHub
parent c129c10f0f
commit 09ad6e4280
166 changed files with 5243 additions and 1939 deletions

View File

@@ -0,0 +1,3 @@
export const formatJSONPathSegment = (segment: string) => {
return Number.isNaN(parseInt(segment)) ? `'${segment}'` : segment
}