Module to manage the info table.
- Source:
Methods
(static) checkInfoTable(db) → {object}
Checks if info table exists.
Parameters:
Name | Type | Description |
---|---|---|
db |
object | The sqlite3 db object from module node-sqlite3 |
- Source:
Returns:
- The promise with true or false
- Type
- object
(static) createInfoTable(db) → {object}
Creates the info table.
Parameters:
Name | Type | Description |
---|---|---|
db |
object | The sqlite3 db object from module node-sqlite3 |
- Source:
Returns:
- The error promise
- Type
- object
(static) getInfoKeys(db, keys) → {Array.<object>}
Returns the object keys for the info table.
Parameters:
Name | Type | Description |
---|---|---|
db |
object | The sqlite3 db object from module node-sqlite3 |
keys |
Array.<string> | The named keys to be retrieved from the info table |
- Source:
Returns:
- The promise with array of pairs of key/value or error
- Type
- Array.<object>
(async, static) setInfoKeys(db, keys) → {Promise.<object.<string, int>>}
Sets the object keys for the info table.
Parameters:
Name | Type | Description |
---|---|---|
db |
object | The sqlite3 db object from module node-sqlite3 |
keys |
Array.<object> | The object keys to be save in the info table |
- Source:
Returns:
- The count of the keys added.
- Type
- Promise.<object.<string, int>>