Module to insert data into a db.
- Source:
Methods
(async, static) executeMany(db, sqliteStatementCreator, data) → {Promise.<null>}
Runs an SQLite statement for each row in data.
It caches statements depending on the columns in each row of data.
Parameters:
Name | Type | Description |
---|---|---|
db |
object | The sqlite3 db object from module node-sqlite3. |
sqliteStatementCreator |
SQLiteStatementCreator | A function that creates SQLite strings. |
data |
array.<object> | A list of all the data rows to execute. |
- Source:
Returns:
- Type
- Promise.<null>