@c9up/atlas 0.1.17 → 0.1.19

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -65,9 +65,7 @@ async function introspectSqlite(
65
65
  db: SchemaIntrospectable,
66
66
  table: string,
67
67
  ): Promise<IntrospectedColumn[] | null> {
68
- const rows = await db.query(
69
- `SELECT * FROM pragma_table_info('${table}')`,
70
- );
68
+ const rows = await db.query(`SELECT * FROM pragma_table_info('${table}')`);
71
69
  if (rows.length === 0) return null; // unknown table → no columns
72
70
  return rows.map((r) => ({
73
71
  name: String(r.name),
@@ -128,6 +126,7 @@ async function introspectMysql(
128
126
  hasDefault:
129
127
  (r.column_default ?? r.COLUMN_DEFAULT) !== null &&
130
128
  (r.column_default ?? r.COLUMN_DEFAULT) !== undefined,
131
- primaryKey: String(r.column_key ?? r.COLUMN_KEY ?? "").toUpperCase() === "PRI",
129
+ primaryKey:
130
+ String(r.column_key ?? r.COLUMN_KEY ?? "").toUpperCase() === "PRI",
132
131
  }));
133
132
  }