You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
yield`INSERT INTO ${escapeId(table)} VALUES(${formattedCells.join(",")});`;
92
112
}
113
+
if(stats){
114
+
stats.rows_read+=rows_cursor.rowsRead;
115
+
stats.rows_written+=rows_cursor.rowsWritten;
116
+
}
93
117
}
94
118
95
119
if(!noSchema){
96
120
// Taken from SQLite shell.c.in https://github.com/sqlite/sqlite/blob/105c20648e1b05839fd0638686b95f2e3998abcb/src/shell.c.in#L8473-L8478
97
121
constrest_of_schema=db.exec(
98
-
`SELECT name, sql FROM sqlite_schema AS o WHERE (true) AND sql NOT NULL AND type IN ('index', 'trigger', 'view') ORDER BY type COLLATE NOCASE /* DESC */;`
122
+
[
123
+
"SELECT name, sql",
124
+
"FROM sqlite_schema AS o",
125
+
"WHERE (true) AND sql NOT NULL",
126
+
" AND type IN ('index', 'trigger', 'view')",
127
+
// 'DESC' appears in the code linked above but the observed behaviour of SQLite appears otherwise
128
+
"ORDER BY type COLLATE NOCASE",
129
+
].join(" ")
99
130
);
100
-
// 'DESC' appears in the code linked above but the observed behaviour of SQLite appears otherwise
0 commit comments