cli: try to fallback to env if present

This commit is contained in:
dswbx
2025-02-12 09:52:18 +01:00
parent 2c6a4d2bed
commit d84731d89e
5 changed files with 24 additions and 6 deletions

View File

@@ -107,7 +107,6 @@ export class SqliteIntrospector implements DatabaseIntrospector, ConnectionIntro
}
const tables = await query.execute();
console.log("tables", tables);
return Promise.all(tables.map(({ name }) => this.#getTableMetadata(name)));
}
@@ -119,7 +118,6 @@ export class SqliteIntrospector implements DatabaseIntrospector, ConnectionIntro
async #getTableMetadata(table: string): Promise<TableMetadata> {
const db = this.#db;
console.log("get table metadata", table);
// Get the SQL that was used to create the table.
const tableDefinition = await db