Lines Matching refs:val
1214 const bindOne = function f(stmt,ndx,bindType,val){ argument
1224 string: function(stmt, ndx, val, asBlob){ argument
1229 const n = wasm.jstrlen(val);
1231 wasm.jstrcpy(val, wasm.heap8u(), pStr, n, false);
1238 const bytes = wasm.jstrToUintArray(val,false);
1251 affirmSupportedBindType(val);
1254 switch((null===val || undefined===val) ? BindTypes.null : bindType){
1259 rc = f._.string(stmt, ndx, val, false);
1263 if(util.isInt32(val)) m = capi.sqlite3_bind_int;
1264 else if('bigint'===typeof val){
1265 if(!util.bigIntFits64(val)){
1266 f._tooBigInt(val);
1269 }else if(util.bigIntFitsDouble(val)){
1270 val = Number(val);
1273 f._tooBigInt(val);
1276 val = Number(val);
1277 if(wasm.bigIntEnabled && Number.isInteger(val)){
1283 rc = m(stmt.pointer, ndx, val);
1287 rc = capi.sqlite3_bind_int(stmt.pointer, ndx, val ? 1 : 0);
1290 if('string'===typeof val){
1291 rc = f._.string(stmt, ndx, val, true);
1292 }else if(!util.isBindableTypedArray(val)){
1299 const pBlob = wasm.scopedAlloc(val.byteLength || 1);
1300 wasm.heap8().set(val.byteLength ? val : [0], pBlob)
1301 rc = capi.sqlite3_bind_blob(stmt.pointer, ndx, pBlob, val.byteLength,
1307 const pBlob = wasm.allocFromTypedArray(val);
1309 rc = capi.sqlite3_bind_blob(stmt.pointer, ndx, pBlob, val.byteLength,
1318 console.warn("Unsupported bind() argument type:",val);
1319 toss3("Unsupported bind() argument type: "+(typeof val));