We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 971b140 commit d381b56Copy full SHA for d381b56
src/sqlite.js
@@ -32,7 +32,7 @@ export class SQLiteDatabaseClient {
32
return this.query(`SELECT name FROM sqlite_master WHERE type = 'table'`);
33
}
34
async describeColumns({table} = {}) {
35
- const rows = await this.query(`SELECT name, type, notnull FROM pragma_table_info(?) ORDER BY cid`, [table]);
+ const rows = await this.query(`SELECT name, type, "notnull" FROM pragma_table_info(?) ORDER BY cid`, [table]);
36
if (!rows.length) throw new Error(`table not found: ${table}`);
37
return rows.map(({name, type, notnull}) => ({name, type: sqliteType(type), databaseType: type, nullable: !notnull}));
38
0 commit comments