Skip to content

Commit

Permalink
Using SQLiteCustom type to get underlying type.
Browse files Browse the repository at this point in the history
  • Loading branch information
Chriztiaan committed Jan 21, 2025
1 parent 62fa325 commit c3290fb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/drizzle-driver/src/utils/schema.ts
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ function mapDrizzleColumnToType(drizzleColumn: SQLiteColumn<any, object>): BaseC
case SQLiteReal[entityKind]:
return column.real;
case SQLiteCustomColumn[entityKind]:
const sqlName = (drizzleColumn as any).sqlName; // Not exposed in the public API
const sqlName = (drizzleColumn as SQLiteCustomColumn<any>).getSQLType();
switch (sqlName) {
case 'text':
return column.text;
Expand Down

0 comments on commit c3290fb

Please sign in to comment.