Skip to content

Commit 9c19e4c

Browse files
ImSingeeChriztiaan
andauthored
allow using drizzle-orm casing option (#403)
Co-authored-by: Christiaan Landman <[email protected]>
1 parent 9d66bdc commit 9c19e4c

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

.changeset/hip-mugs-beam.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@powersync/drizzle-driver': minor
3+
---
4+
5+
Added support for casing option.

packages/drizzle-driver/src/sqlite/db.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ export function wrapPowerSyncWithDrizzle<TSchema extends Record<string, unknown>
2727
db: AbstractPowerSyncDatabase,
2828
config: DrizzleConfig<TSchema> = {}
2929
): PowerSyncSQLiteDatabase<TSchema> {
30-
const dialect = new SQLiteAsyncDialect();
30+
const dialect = new SQLiteAsyncDialect({casing: config.casing});
3131
let logger;
3232
if (config.logger === true) {
3333
logger = new DefaultLogger();

0 commit comments

Comments
 (0)