feat: add SQLite support

Adds `KyselyTypegenSQLiteDialect`, exported from `kysely-typegen/sqlite`.
This commit is contained in:
theoludwig committed 2026-05-22 16:01:01 +02:00
1 parent e11a4d2722
commit 9df8b6b64a
8 files changed
+499 -4

No files matched your search

+6 -1
View File
@@ -55,6 +55,10 @@ export abstract class KyselyTypegenDialect {
})
}
protected normalizeDataType(dataType: string): string {
return dataType
}
protected resolveColumnType(
table: TableMetadata,
column: ColumnMetadata,
@@ -65,7 +69,8 @@ export abstract class KyselyTypegenDialect {
if (inlineUnion != null) {
return inlineUnion
}
return scalars[column.dataType] ?? "unknown"
const dataType = this.normalizeDataType(column.dataType)
return scalars[dataType] ?? "unknown"
}
public getTablesTypegen(