(res: {rows: any[]})
| 211 | |
| 212 | const sql = `UPDATE ${options.table} SET ${options.set.join(", ")} WHERE ${options.where}`; |
| 213 | |
| 214 | let subrc = 0; |
| 215 | let dbcnt = 0; |
| 216 | try { |
| 217 | if (this.trace === true) { |
| 218 | console.log(sql); |
| 219 | } |
| 220 | |
| 221 | const res = await this.modifying(sql); |
| 222 | dbcnt = res?.rowCount || 0; |
| 223 | if (dbcnt === 0) { |
| 224 | subrc = 4; |
| 225 | } |
| 226 | } catch (error) { |
| 227 | subrc = 4; |
| 228 | } |
| 229 | |
| 230 | return {subrc, dbcnt}; |
no outgoing calls
no test coverage detected