You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
19 lines
420 B
19 lines
420 B
import { PawSQLiteError } from "./pawsqlite_error.mjs"; |
|
|
|
|
|
export class Result extends Array { |
|
constructor(result) { |
|
if (result.hasOwnProperty("rows")) { |
|
super(...result.rows); |
|
} else { |
|
super(); |
|
} |
|
|
|
if (result.hasOwnProperty("insertId")) { |
|
this.insertId = result.insertId; |
|
} |
|
if (result.hasOwnProperty("rowsAffected")) { |
|
this.rowsAffected = result.rowsAffected; |
|
} |
|
} |
|
} |