@event-driven-io/emmett-sqlite 0.41.0-alpha.2 → 0.41.0-alpha.3
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/dist/index.cjs +2 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +2 -1
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
package/dist/index.cjs
CHANGED
|
@@ -538,7 +538,8 @@ var sqliteRawBatchSQLProjection = (options) => sqliteProjection({
|
|
|
538
538
|
await options.init(context);
|
|
539
539
|
}
|
|
540
540
|
if (options.initSQL) {
|
|
541
|
-
|
|
541
|
+
const initSQLs = Array.isArray(options.initSQL) ? options.initSQL : [options.initSQL];
|
|
542
|
+
for (const sql2 of initSQLs) await context.connection.command(sql2);
|
|
542
543
|
}
|
|
543
544
|
}
|
|
544
545
|
});
|