typesql-cli 0.8.0-alpha.1 → 0.8.0-alpha.2
Sign up to get free protection for your applications and to get access to all the features.
package/package.json
CHANGED
@@ -17,7 +17,7 @@ function loadDbSchema(databaseUri) {
|
|
17
17
|
t.name as 'table',
|
18
18
|
ti.name as 'column',
|
19
19
|
ti.type as column_type,
|
20
|
-
ti.'notnull' as '
|
20
|
+
ti.'notnull' or ti.pk = 1 as 'notNull',
|
21
21
|
IIF(ti.pk = 1, 'PRI', '') as columnKey
|
22
22
|
FROM all_tables t INNER JOIN pragma_table_info(t.name) ti
|
23
23
|
`;
|