sqlite bulk insert

This commit is contained in:
Jan Prochazka
2021-05-06 15:57:50 +02:00
parent 23940aa324
commit 7a008e5a9d
3 changed files with 24 additions and 11 deletions

View File

@@ -24,8 +24,10 @@ class Analyser extends DatabaseAnalyser {
'tables',
tables.rows.map((x) => x.name)
)) {
const info = await this.driver.query(this.pool, `pragma table_info('${tableName}')`);
const tableObj = tableList.find((x) => x.pureName == tableName);
if (!tableObj) continue;
const info = await this.driver.query(this.pool, `pragma table_info('${tableName}')`);
tableObj.columns = info.rows.map((col) => ({
columnName: col.name,
dataType: col.type,