Skip to content

Commit

Permalink
allow using drizzle-orm casing option (#403)
Browse files Browse the repository at this point in the history
Co-authored-by: Christiaan Landman <[email protected]>
  • Loading branch information
ImSingee and Chriztiaan authored Nov 14, 2024
1 parent 9d66bdc commit 9c19e4c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/hip-mugs-beam.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@powersync/drizzle-driver': minor
---

Added support for casing option.
2 changes: 1 addition & 1 deletion packages/drizzle-driver/src/sqlite/db.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ export function wrapPowerSyncWithDrizzle<TSchema extends Record<string, unknown>
db: AbstractPowerSyncDatabase,
config: DrizzleConfig<TSchema> = {}
): PowerSyncSQLiteDatabase<TSchema> {
const dialect = new SQLiteAsyncDialect();
const dialect = new SQLiteAsyncDialect({casing: config.casing});
let logger;
if (config.logger === true) {
logger = new DefaultLogger();
Expand Down

0 comments on commit 9c19e4c

Please sign in to comment.