Major Bugfix

This commit is contained in:
2026-03-22 05:44:28 +01:00
parent 04e4e0e9fd
commit f0cec49e3b
3 changed files with 7 additions and 3 deletions
+3 -1
View File
@@ -8,7 +8,9 @@ export default function dbSchemaToType({ config, dbSchema, }) {
.map((tbl) => ` "${tbl.tableName}",`)
.join("\n")}\n] as const`;
const dbTablesSchemas = datasquirelSchema.tables;
const defDbName = config.db_name?.toUpperCase().replace(/ |\-/g, "_");
const defDbName = config.db_name
?.toUpperCase()
.replace(/^[a-zA-Z0-9]/g, "_");
const defNames = [];
const schemas = dbTablesSchemas
.map((table) => {