Lines Matching refs:ndx

345   const affirmColIndex = function(stmt,ndx){  argument
346 if((ndx !== (ndx|0)) || ndx<0 || ndx>=stmt.columnCount){
347 toss3("Column index",ndx,"is out of range.");
1214 const bindOne = function f(stmt,ndx,bindType,val){ argument
1224 string: function(stmt, ndx, val, asBlob){ argument
1233 return f(stmt.pointer, ndx, pStr, n, capi.SQLITE_TRANSIENT);
1243 return f(stmt.pointer, ndx, pStr, bytes.length, capi.SQLITE_TRANSIENT);
1252 ndx = affirmParamIndex(stmt,ndx);
1256 rc = capi.sqlite3_bind_null(stmt.pointer, ndx);
1259 rc = f._.string(stmt, ndx, val, false);
1283 rc = m(stmt.pointer, ndx, val);
1287 rc = capi.sqlite3_bind_int(stmt.pointer, ndx, val ? 1 : 0);
1291 rc = f._.string(stmt, ndx, val, true);
1301 rc = capi.sqlite3_bind_blob(stmt.pointer, ndx, pBlob, val.byteLength,
1309 rc = capi.sqlite3_bind_blob(stmt.pointer, ndx, pBlob, val.byteLength,
1438 let ndx, arg;
1440 case 1: ndx = 1; arg = arguments[0]; break;
1441 case 2: ndx = arguments[0]; arg = arguments[1]; break;
1456 return bindOne(this, ndx, BindTypes.null, arg);
1478 return bindOne(this, ndx, affirmSupportedBindType(arg), arg);
1493 bindAsBlob: function(ndx,arg){ argument
1496 arg = ndx;
1497 ndx = 1;
1504 bindOne(this, ndx, BindTypes.blob, arg);
1603 get: function(ndx,asType){ argument
1607 if(Array.isArray(ndx)){
1610 ndx[i] = this.get(i++);
1612 return ndx;
1613 }else if(ndx && 'object'===typeof ndx){
1616 ndx[capi.sqlite3_column_name(this.pointer,i)] = this.get(i++);
1618 return ndx;
1620 affirmColIndex(this, ndx);
1622 ? capi.sqlite3_column_type(this.pointer, ndx)
1627 const rc = capi.sqlite3_column_int64(this.pointer, ndx);
1636 const rc = capi.sqlite3_column_double(this.pointer, ndx);
1650 return capi.sqlite3_column_double(this.pointer, ndx);
1652 return capi.sqlite3_column_text(this.pointer, ndx);
1654 const n = capi.sqlite3_column_bytes(this.pointer, ndx),
1655 ptr = capi.sqlite3_column_blob(this.pointer, ndx),
1670 "type of result column #"+ndx+".");
1676 getInt: function(ndx){return this.get(ndx,capi.SQLITE_INTEGER)}, argument
1679 getFloat: function(ndx){return this.get(ndx,capi.SQLITE_FLOAT)}, argument
1682 getString: function(ndx){return this.get(ndx,capi.SQLITE_TEXT)}, argument
1685 getBlob: function(ndx){return this.get(ndx,capi.SQLITE_BLOB)}, argument
1693 getJSON: function(ndx){ argument
1694 const s = this.get(ndx, capi.SQLITE_STRING);
1707 getColumnName: function(ndx){ argument
1709 affirmColIndex(affirmStmtOpen(this),ndx).pointer, ndx