mirror of
https://github.com/expo/node-websql.git
synced 2026-11-15 17:37:00 -10:00
18 lines
365 B
JavaScript
18 lines
365 B
JavaScript
'use strict';
|
|
|
|
function WebSQLRows(array) {
|
|
this._array = array;
|
|
this.length = array.length;
|
|
}
|
|
|
|
WebSQLRows.prototype.item = function (i) {
|
|
return this._array[i];
|
|
};
|
|
|
|
function WebSQLResultSet(insertId, rowsAffected, rows) {
|
|
this.insertId = insertId;
|
|
this.rowsAffected = rowsAffected;
|
|
this.rows = new WebSQLRows(rows);
|
|
}
|
|
|
|
module.exports = WebSQLResultSet; |