Method
openCursor
(options: DB.SelectDatabaseOptions)
Source from the content-addressed store, hash-verified
| 227 | subrc = 4; |
| 228 | } |
| 229 | |
| 230 | return {subrc, dbcnt}; |
| 231 | } |
| 232 | |
| 233 | public async insert(options: DB.InsertDatabaseOptions): Promise<{ subrc: number; dbcnt: number; }> { |
| 234 | this.checkFatal(); |
| 235 | if (this.lazy === true && this.pool === undefined) { |
| 236 | await this.connect(); |
| 237 | } |
| 238 | |
| 239 | const sql = `INSERT INTO ${options.table} (${options.columns.map(c => "\"" + c + "\"").join(",")}) VALUES (${options.values.join(",")})`; |
| 240 | |
| 241 | let subrc = 0; |
| 242 | let dbcnt = 0; |
| 243 | try { |
Callers
nothing calls this directly
Tested by
no test coverage detected