Skip to content

Commit c3290fb

Browse files
committed
Using SQLiteCustom type to get underlying type.
1 parent 62fa325 commit c3290fb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/drizzle-driver/src/utils/schema.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ function mapDrizzleColumnToType(drizzleColumn: SQLiteColumn<any, object>): BaseC
7878
case SQLiteReal[entityKind]:
7979
return column.real;
8080
case SQLiteCustomColumn[entityKind]:
81-
const sqlName = (drizzleColumn as any).sqlName; // Not exposed in the public API
81+
const sqlName = (drizzleColumn as SQLiteCustomColumn<any>).getSQLType();
8282
switch (sqlName) {
8383
case 'text':
8484
return column.text;

0 commit comments

Comments
 (0)