@storecraft/database-sql-base 1.0.20 → 1.0.21
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.
package/package.json
CHANGED
@@ -0,0 +1,38 @@
|
|
1
|
+
-- database: ../../../playground/node-libsql/data.db
|
2
|
+
|
3
|
+
with table_list as (
|
4
|
+
select name, sql, type from sqlite_master
|
5
|
+
where
|
6
|
+
type in ('table', 'view')
|
7
|
+
and name not like 'sqlite_%'
|
8
|
+
order by name
|
9
|
+
)
|
10
|
+
select p.name from table_list as tl, pragma_table_info(tl.name) as p
|
11
|
+
order by tl.name, p.cid;
|
12
|
+
|
13
|
+
|
14
|
+
with table_list as (
|
15
|
+
select name, sql, type from sqlite_master
|
16
|
+
where
|
17
|
+
type in ('table', 'view')
|
18
|
+
and name not like 'sqlite_%'
|
19
|
+
order by name
|
20
|
+
)
|
21
|
+
select p.name, tl.name from table_list as tl, pragma_table_info(tl.name) as p
|
22
|
+
order by tl.name, p.cid;
|
23
|
+
|
24
|
+
|
25
|
+
select name from pragma_table_info('auth_users')
|
26
|
+
order by name;
|
27
|
+
|
28
|
+
|
29
|
+
with table_list as (
|
30
|
+
select name, sql, type from sqlite_master
|
31
|
+
where
|
32
|
+
type in ('table', 'view')
|
33
|
+
and name not like 'sqlite_%'
|
34
|
+
order by name
|
35
|
+
)
|
36
|
+
select p.name from pragma_table_info('auth_users') as p;
|
37
|
+
|
38
|
+
|