()
| 18 | |
| 19 | // EMSCRIPTEN_END_ASM |
| 20 | (Module.asmGlobalArg,Module.asmLibraryArg,buffer);var _RegisterExtensionFunctions=Module["_RegisterExtensionFunctions"]=asm["_RegisterExtensionFunctions"];var ___divdi3=Module["___divdi3"]=asm["___divdi3"];var ___errno_location=Module["___errno_location"]=asm["___errno_location"];var ___muldi3=Module["___muldi3"]=asm["___muldi3"];var ___remdi3=Module["___remdi3"]=asm["___remdi3"];var ___udivdi3=Module["___udivdi3"]=asm["___udivdi3"];var ___uremdi3=Module["___uremdi3"]=asm["___uremdi3"];var _bitshift64Ashr=Module["_bitshift64Ashr"]=asm["_bitshift64Ashr"];var _bitshift64Lshr=Module["_bitshift64Lshr"]=asm["_bitshift64Lshr"];var _bitshift64Shl=Module["_bitshift64Shl"]=asm["_bitshift64Shl"];var _emscripten_get_global_libc=Module["_emscripten_get_global_libc"]=asm["_emscripten_get_global_libc"];var _free=Module["_free"]=asm["_free"];var _i64Add=Module["_i64Add"]=asm["_i64Add"];var _i64Subtract=Module["_i64Subtract"]=asm["_i64Subtract"];var _llvm_bswap_i32=Module["_llvm_bswap_i32"]=asm["_llvm_bswap_i32"];var _malloc=Module["_malloc"]=asm["_malloc"];var _memalign=Module["_memalign"]=asm["_memalign"];var _memcpy=Module["_memcpy"]=asm["_memcpy"];var _memmove=Module["_memmove"]=asm["_memmove"];var _memset=Module["_memset"]=asm["_memset"];var _sbrk=Module["_sbrk"]=asm["_sbrk"];var _sqlite3_bind_blob=Module["_sqlite3_bind_blob"]=asm["_sqlite3_bind_blob"];var _sqlite3_bind_double=Module["_sqlite3_bind_double"]=asm["_sqlite3_bind_double"];var _sqlite3_bind_int=Module["_sqlite3_bind_int"]=asm["_sqlite3_bind_int"];var _sqlite3_bind_parameter_index=Module["_sqlite3_bind_parameter_index"]=asm["_sqlite3_bind_parameter_index"];var _sqlite3_bind_text=Module["_sqlite3_bind_text"]=asm["_sqlite3_bind_text"];var _sqlite3_changes=Module["_sqlite3_changes"]=asm["_sqlite3_changes"];var _sqlite3_clear_bindings=Module["_sqlite3_clear_bindings"]=asm["_sqlite3_clear_bindings"];var _sqlite3_close_v2=Module["_sqlite3_close_v2"]=asm["_sqlite3_close_v2"];var _sqlite3_column_blob=Module["_sqlite3_column_blob"]=asm["_sqlite3_column_blob"];var _sqlite3_column_bytes=Module["_sqlite3_column_bytes"]=asm["_sqlite3_column_bytes"];var _sqlite3_column_double=Module["_sqlite3_column_double"]=asm["_sqlite3_column_double"];var _sqlite3_column_name=Module["_sqlite3_column_name"]=asm["_sqlite3_column_name"];var _sqlite3_column_text=Module["_sqlite3_column_text"]=asm["_sqlite3_column_text"];var _sqlite3_column_type=Module["_sqlite3_column_type"]=asm["_sqlite3_column_type"];var _sqlite3_create_function_v2=Module["_sqlite3_create_function_v2"]=asm["_sqlite3_create_function_v2"];var _sqlite3_data_count=Module["_sqlite3_data_count"]=asm["_sqlite3_data_count"];var _sqlite3_errmsg=Module["_sqlite3_errmsg"]=asm["_sqlite3_errmsg"];var _sqlite3_exec=Module["_sqlite3_exec"]=asm["_sqlite3_exec"];var _sqlite3_finalize=Module["_sqlite3_finalize"]=asm["_sqlite3_finalize"];var _sqlite3_free=Module["_sqlite3_free"]=asm["_sqlite3_free"];var _sqlite3_open=Module["_sqlite3_open"]=asm["_sqlite3_open"];var _sqlite3_prepare_v2=Module["_sqlite3_prepare_v2"]=asm["_sqlite3_prepare_v2"];var _sqlite3_reset=Module["_sqlite3_reset"]=asm["_sqlite3_reset"];var _sqlite3_result_double=Module["_sqlite3_result_double"]=asm["_sqlite3_result_double"];var _sqlite3_result_null=Module["_sqlite3_result_null"]=asm["_sqlite3_result_null"];var _sqlite3_result_text=Module["_sqlite3_result_text"]=asm["_sqlite3_result_text"];var _sqlite3_step=Module["_sqlite3_step"]=asm["_sqlite3_step"];var _sqlite3_value_blob=Module["_sqlite3_value_blob"]=asm["_sqlite3_value_blob"];var _sqlite3_value_bytes=Module["_sqlite3_value_bytes"]=asm["_sqlite3_value_bytes"];var _sqlite3_value_double=Module["_sqlite3_value_double"]=asm["_sqlite3_value_double"];var _sqlite3_value_int=Module["_sqlite3_value_int"]=asm["_sqlite3_value_int"];var _sqlite3_value_text=Module["_sqlite3_value_text"]=asm["_sqlite3_value_text"];var _sqlite3_value_type=Module["_sqlite3_value_type"]=asm["_sqlite3_value_type"];var establishStackSpace=Module["establishStackSpace"]=asm["establishStackSpace"];var getTempRet0=Module["getTempRet0"]=asm["getTempRet0"];var runPostSets=Module["runPostSets"]=asm["runPostSets"];var setTempRet0=Module["setTempRet0"]=asm["setTempRet0"];var setThrew=Module["setThrew"]=asm["setThrew"];var stackAlloc=Module["stackAlloc"]=asm["stackAlloc"];var stackRestore=Module["stackRestore"]=asm["stackRestore"];var stackSave=Module["stackSave"]=asm["stackSave"];var dynCall_i=Module["dynCall_i"]=asm["dynCall_i"];var dynCall_ii=Module["dynCall_ii"]=asm["dynCall_ii"];var dynCall_iii=Module["dynCall_iii"]=asm["dynCall_iii"];var dynCall_iiii=Module["dynCall_iiii"]=asm["dynCall_iiii"];var dynCall_iiiii=Module["dynCall_iiiii"]=asm["dynCall_iiiii"];var dynCall_iiiiii=Module["dynCall_iiiiii"]=asm["dynCall_iiiiii"];var dynCall_iiiiiii=Module["dynCall_iiiiiii"]=asm["dynCall_iiiiiii"];var dynCall_vi=Module["dynCall_vi"]=asm["dynCall_vi"];var dynCall_vii=Module["dynCall_vii"]=asm["dynCall_vii"];var dynCall_viii=Module["dynCall_viii"]=asm["dynCall_viii"];var dynCall_viiii=Module["dynCall_viiii"]=asm["dynCall_viiii"];var dynCall_viiiiii=Module["dynCall_viiiiii"]=asm["dynCall_viiiiii"];Module["asm"]=asm;if(memoryInitializer){if(!isDataURI(memoryInitializer)){if(typeof Module["locateFile"]==="function"){memoryInitializer=Module["locateFile"](memoryInitializer)}else if(Module["memoryInitializerPrefixURL"]){memoryInitializer=Module["memoryInitializerPrefixURL"]+memoryInitializer}}if(ENVIRONMENT_IS_NODE||ENVIRONMENT_IS_SHELL){var data=Module["readBinary"](memoryInitializer);HEAPU8.set(data,GLOBAL_BASE)}else{addRunDependency("memory initializer");var applyMemoryInitializer=(function(data){if(data.byteLength)data=new Uint8Array(data);HEAPU8.set(data,GLOBAL_BASE);if(Module["memoryInitializerRequest"])delete Module["memoryInitializerRequest"].response;removeRunDependency("memory initializer")});function doBrowserLoad(){Module["readAsync"](memoryInitializer,applyMemoryInitializer,(function(){throw"could not load memory initializer "+memoryInitializer}))}var memoryInitializerBytes=tryParseAsDataURI(memoryInitializer);if(memoryInitializerBytes){applyMemoryInitializer(memoryInitializerBytes.buffer)}else if(Module["memoryInitializerRequest"]){function useRequest(){var request=Module["memoryInitializerRequest"];var response=request.response;if(request.status!==200&&request.status!==0){var data=tryParseAsDataURI(Module["memoryInitializerRequestURL"]);if(data){response=data.buffer}else{console.warn("a problem seems to have happened with Module.memoryInitializerRequest, status: "+request.status+", retrying "+memoryInitializer);doBrowserLoad();return}}applyMemoryInitializer(response)}if(Module["memoryInitializerRequest"].response){setTimeout(useRequest,0)}else{Module["memoryInitializerRequest"].addEventListener("load",useRequest)}}else{doBrowserLoad()}}}function ExitStatus(status){this.name="ExitStatus";this.message="Program terminated with exit("+status+")";this.status=status}ExitStatus.prototype=new Error;ExitStatus.prototype.constructor=ExitStatus;var initialStackTop;var preloadStartTime=null;dependenciesFulfilled=function runCaller(){if(!Module["calledRun"])run();if(!Module["calledRun"])dependenciesFulfilled=runCaller};function run(args){args=args||Module["arguments"];if(preloadStartTime===null)preloadStartTime=Date.now();if(runDependencies>0){return}preRun();if(runDependencies>0)return;if(Module["calledRun"])return;function doRun(){if(Module["calledRun"])return;Module["calledRun"]=true;if(ABORT)return;ensureInitRuntime();preMain();if(Module["onRuntimeInitialized"])Module["onRuntimeInitialized"]();postRun()}if(Module["setStatus"]){Module["setStatus"]("Running...");setTimeout((function(){setTimeout((function(){Module["setStatus"]("")}),1);doRun()}),1)}else{doRun()}}Module["run"]=run;function exit(status,implicit){if(implicit&&Module["noExitRuntime"]&&status===0){return}if(Module["noExitRuntime"]){}else{ABORT=true;EXITSTATUS=status;STACKTOP=initialStackTop;exitRuntime();if(Module["onExit"])Module["onExit"](status)}if(ENVIRONMENT_IS_NODE){process["exit"](status)}Module["quit"](status,new ExitStatus(status))}Module["exit"]=exit;var abortDecorators=[];function abort(what){if(Module["onAbort"]){Module["onAbort"](what)}if(what!==undefined){Module.print(what);Module.printErr(what);what=JSON.stringify(what)}else{what=""}ABORT=true;EXITSTATUS=1;var extra="\nIf this abort() is unexpected, build with -s ASSERTIONS=1 which can give more information.";var output="abort("+what+") at "+stackTrace()+extra;if(abortDecorators){abortDecorators.forEach((function(decorator){output=decorator(output,what)}))}throw output}Module["abort"]=abort;if(Module["preInit"]){if(typeof Module["preInit"]=="function")Module["preInit"]=[Module["preInit"]];while(Module["preInit"].length>0){Module["preInit"].pop()()}}Module["noExitRuntime"]=true;run();var Database,NULL,RegisterExtensionFunctions,SQLite,Statement,apiTemp,i,sqlite3_bind_blob,sqlite3_bind_double,sqlite3_bind_int,sqlite3_bind_parameter_index,sqlite3_bind_text,sqlite3_changes,sqlite3_clear_bindings,sqlite3_close_v2,sqlite3_column_blob,sqlite3_column_bytes,sqlite3_column_double,sqlite3_column_name,sqlite3_column_text,sqlite3_column_type,sqlite3_create_function_v2,sqlite3_data_count,sqlite3_errmsg,sqlite3_exec,sqlite3_finalize,sqlite3_free,sqlite3_open,sqlite3_prepare_v2,sqlite3_prepare_v2_sqlptr,sqlite3_reset,sqlite3_result_double,sqlite3_result_null,sqlite3_result_text,sqlite3_step,sqlite3_value_blob,sqlite3_value_bytes,sqlite3_value_double,sqlite3_value_int,sqlite3_value_text,sqlite3_value_type;apiTemp=stackAlloc(4);SQLite={};Statement=(function(){function Statement(stmt1,db){this.stmt=stmt1;this.db=db;this.pos=1;this.allocatedmem=[]}Statement.prototype["bind"]=(function(values){if(!this.stmt){throw"Statement closed"}this["reset"]();if(Array.isArray(values)){return this.bindFromArray(values)}else{return this.bindFromObject(values)}});Statement.prototype["step"]=(function(){var ret;if(!this.stmt){throw"Statement closed"}this.pos=1;switch(ret=sqlite3_step(this.stmt)){case SQLite.ROW:return true;case SQLite.DONE:return false;default:return this.db.handleError(ret)}});Statement.prototype.getNumber=(function(pos){if(pos==null){pos=this.pos++}return sqlite3_column_double(this.stmt,pos)});Statement.prototype.getString=(function(pos){if(pos==null){pos=this.pos++}return sqlite3_column_text(this.stmt,pos)});Statement.prototype.getBlob=(function(pos){var i,k,ptr,ref,result,size;if(pos==null){pos=this.pos++}size=sqlite3_column_bytes(this.stmt,pos);ptr=sqlite3_column_blob(this.stmt,pos);result=new Uint8Array(size);for(i=k=0,ref=size;0<=ref?k<ref:k>ref;i=0<=ref?++k:--k){result[i]=HEAP8[ptr+i]}return result});Statement.prototype["get"]=(function(params){var field,k,ref,results1;if(params!=null){this["bind"](params)&&this["step"]()}results1=[];for(field=k=0,ref=sqlite3_data_count(this.stmt);0<=ref?k<ref:k>ref;field=0<=ref?++k:--k){switch(sqlite3_column_type(this.stmt,field)){case SQLite.INTEGER:case SQLite.FLOAT:results1.push(this.getNumber(field));break;case SQLite.TEXT:results1.push(this.getString(field));break;case SQLite.BLOB:results1.push(this.getBlob(field));break;default:results1.push(null)}}return results1});Statement.prototype["getColumnNames"]=(function(){var i,k,ref,results1;results1=[];for(i=k=0,ref=sqlite3_data_count(this.stmt);0<=ref?k<ref:k>ref;i=0<=ref?++k:--k){results1.push(sqlite3_column_name(this.stmt,i))}return results1});Statement.prototype["getAsObject"]=(function(params){var i,k,len,name,names,rowObject,values;values=this["get"](params);names=this["getColumnNames"]();rowObject={};for(i=k=0,len=names.length;k<len;i=++k){name=names[i];rowObject[name]=values[i]}return rowObject});Statement.prototype["run"]=(function(values){if(values!=null){this["bind"](values)}this["step"]();return this["reset"]()});Statement.prototype.bindString=(function(string,pos){var bytes,strptr;if(pos==null){pos=this.pos++}bytes=intArrayFromString(string);this.allocatedmem.push(strptr=allocate(bytes,"i8",ALLOC_NORMAL));this.db.handleError(sqlite3_bind_text(this.stmt,pos,strptr,bytes.length-1,0));return true});Statement.prototype.bindBlob=(function(array,pos){var blobptr;if(pos==null){pos=this.pos++}this.allocatedmem.push(blobptr=allocate(array,"i8",ALLOC_NORMAL));this.db.handleError(sqlite3_bind_blob(this.stmt,pos,blobptr,array.length,0));return true});Statement.prototype.bindNumber=(function(num,pos){var bindfunc;if(pos==null){pos=this.pos++}bindfunc=num===(num|0)?sqlite3_bind_int:sqlite3_bind_double;this.db.handleError(bindfunc(this.stmt,pos,num));return true});Statement.prototype.bindNull=(function(pos){if(pos==null){pos=this.pos++}return sqlite3_bind_blob(this.stmt,pos,0,0,0)===SQLite.OK});Statement.prototype.bindValue=(function(val,pos){if(pos==null){pos=this.pos++}switch(typeof val){case"string":return this.bindString(val,pos);case"number":case"boolean":return this.bindNumber(val+0,pos);case"object":if(val===null){return this.bindNull(pos)}else if(val.length!=null){return this.bindBlob(val,pos)}else{throw"Wrong API use : tried to bind a value of an unknown type ("+val+")."}}});Statement.prototype.bindFromObject=(function(valuesObj){var name,num,value;for(name in valuesObj){value=valuesObj[name];num=sqlite3_bind_parameter_index(this.stmt,name);if(num!==0){this.bindValue(value,num)}}return true});Statement.prototype.bindFromArray=(function(values){var k,len,num,value;for(num=k=0,len=values.length;k<len;num=++k){value=values[num];this.bindValue(value,num+1)}return true});Statement.prototype["reset"]=(function(){this.freemem();return sqlite3_clear_bindings(this.stmt)===SQLite.OK&&sqlite3_reset(this.stmt)===SQLite.OK});Statement.prototype.freemem=(function(){var mem;while(mem=this.allocatedmem.pop()){_free(mem)}return null});Statement.prototype["free"]=(function(){var res;this.freemem();res=sqlite3_finalize(this.stmt)===SQLite.OK;delete this.db.statements[this.stmt];this.stmt=NULL;return res});return Statement})();Database=(function(){function Database(data){this.filename="dbfile_"+(4294967295*Math.random()>>>0);if(data!=null){FS.createDataFile("/",this.filename,data,true,true)}this.handleError(sqlite3_open(this.filename,apiTemp));this.db=getValue(apiTemp,"i32");RegisterExtensionFunctions(this.db);this.statements={}}Database.prototype["run"]=(function(sql,params){var stmt;if(!this.db){throw"Database closed"}if(params){stmt=this["prepare"](sql,params);stmt["step"]();stmt["free"]()}else{this.handleError(sqlite3_exec(this.db,sql,0,0,apiTemp))}return this});Database.prototype["exec"]=(function(sql){var curresult,nextSqlPtr,pStmt,pzTail,results,stack,stmt;if(!this.db){throw"Database closed"}stack=stackSave();nextSqlPtr=stackAlloc(sql.length<<2+1);writeStringToMemory(sql,nextSqlPtr);pzTail=stackAlloc(4);results=[];while(getValue(nextSqlPtr,"i8")!==NULL){setValue(apiTemp,0,"i32");setValue(pzTail,0,"i32");this.handleError(sqlite3_prepare_v2_sqlptr(this.db,nextSqlPtr,-1,apiTemp,pzTail));pStmt=getValue(apiTemp,"i32");nextSqlPtr=getValue(pzTail,"i32");if(pStmt===NULL){continue}stmt=new Statement(pStmt,this);curresult=null;while(stmt["step"]()){if(curresult===null){curresult={"columns":stmt["getColumnNames"](),"values":[]};results.push(curresult)}curresult["values"].push(stmt["get"]())}stmt["free"]()}stackRestore(stack);return results});Database.prototype["each"]=(function(sql,params,callback,done){var stmt;if(typeof params==="function"){done=callback;callback=params;params=void 0}stmt=this["prepare"](sql,params);while(stmt["step"]()){callback(stmt["getAsObject"]())}stmt["free"]();if(typeof done==="function"){return done()}});Database.prototype["prepare"]=(function(sql,params){var pStmt,stmt;setValue(apiTemp,0,"i32");this.handleError(sqlite3_prepare_v2(this.db,sql,-1,apiTemp,NULL));pStmt=getValue(apiTemp,"i32");if(pStmt===NULL){throw"Nothing to prepare"}stmt=new Statement(pStmt,this);if(params!=null){stmt.bind(params)}this.statements[pStmt]=stmt;return stmt});Database.prototype["export"]=(function(){var _,binaryDb,ref,stmt;ref=this.statements;for(_ in ref){stmt=ref[_];stmt["free"]()}this.handleError(sqlite3_close_v2(this.db));binaryDb=FS.readFile(this.filename,{encoding:"binary"});this.handleError(sqlite3_open(this.filename,apiTemp));this.db=getValue(apiTemp,"i32");return binaryDb});Database.prototype["close"]=(function(){var _,ref,stmt;ref=this.statements;for(_ in ref){stmt=ref[_];stmt["free"]()}this.handleError(sqlite3_close_v2(this.db));FS.unlink("/"+this.filename);return this.db=null});Database.prototype.handleError=(function(returnCode){var errmsg;if(returnCode===SQLite.OK){return null}else{errmsg=sqlite3_errmsg(this.db);throw new Error(errmsg)}});Database.prototype["getRowsModified"]=(function(){return sqlite3_changes(this.db)});Database.prototype["create_function"]=(function(name,func){var func_ptr,wrapped_func;wrapped_func=(function(cx,argc,argv){var arg,args,data_func,i,k,ref,result,value_ptr,value_type;args=[];for(i=k=0,ref=argc;0<=ref?k<ref:k>ref;i=0<=ref?++k:--k){value_ptr=getValue(argv+4*i,"i32");value_type=sqlite3_value_type(value_ptr);data_func=(function(){switch(false){case value_type!==1:return sqlite3_value_int;case value_type!==2:return sqlite3_value_double;case value_type!==3:return sqlite3_value_text;case value_type!==4:return(function(ptr){var blob_arg,blob_ptr,j,l,ref1,size;size=sqlite3_value_bytes(ptr);blob_ptr=sqlite3_value_blob(ptr);blob_arg=new Uint8Array(size);for(j=l=0,ref1=size;0<=ref1?l<ref1:l>ref1;j=0<=ref1?++l:--l){blob_arg[j]=HEAP8[blob_ptr+j]}return blob_arg});default:return(function(ptr){return null})}})();arg=data_func(value_ptr);args.push(arg)}result=func.apply(null,args);if(!result){return sqlite3_result_null(cx)}else{switch(typeof result){case"number":return sqlite3_result_double(cx,result);case"string":return sqlite3_result_text(cx,result,-1,-1)}}});func_ptr=addFunction(wrapped_func);this.handleError(sqlite3_create_function_v2(this.db,name,func.length,SQLite.UTF8,0,func_ptr,0,0,0));return this});return Database})();sqlite3_open=Module["cwrap"]("sqlite3_open","number",["string","number"]);sqlite3_close_v2=Module["cwrap"]("sqlite3_close_v2","number",["number"]);sqlite3_exec=Module["cwrap"]("sqlite3_exec","number",["number","string","number","number","number"]);sqlite3_free=Module["cwrap"]("sqlite3_free","",["number"]);sqlite3_changes=Module["cwrap"]("sqlite3_changes","number",["number"]);sqlite3_prepare_v2=Module["cwrap"]("sqlite3_prepare_v2","number",["number","string","number","number","number"]);sqlite3_prepare_v2_sqlptr=Module["cwrap"]("sqlite3_prepare_v2","number",["number","number","number","number","number"]);sqlite3_bind_text=Module["cwrap"]("sqlite3_bind_text","number",["number","number","number","number","number"]);sqlite3_bind_blob=Module["cwrap"]("sqlite3_bind_blob","number",["number","number","number","number","number"]);sqlite3_bind_double=Module["cwrap"]("sqlite3_bind_double","number",["number","number","number"]);sqlite3_bind_int=Module["cwrap"]("sqlite3_bind_int","number",["number","number","number"]);sqlite3_bind_parameter_index=Module["cwrap"]("sqlite3_bind_parameter_index","number",["number","string"]);sqlite3_step=Module["cwrap"]("sqlite3_step","number",["number"]);sqlite3_errmsg=Module["cwrap"]("sqlite3_errmsg","string",["number"]);sqlite3_data_count=Module["cwrap"]("sqlite3_data_count","number",["number"]);sqlite3_column_double=Module["cwrap"]("sqlite3_column_double","number",["number","number"]);sqlite3_column_text=Module["cwrap"]("sqlite3_column_text","string",["number","number"]);sqlite3_column_blob=Module["cwrap"]("sqlite3_column_blob","number",["number","number"]);sqlite3_column_bytes=Module["cwrap"]("sqlite3_column_bytes","number",["number","number"]);sqlite3_column_type=Module["cwrap"]("sqlite3_column_type","number",["number","number"]);sqlite3_column_name=Module["cwrap"]("sqlite3_column_name","string",["number","number"]);sqlite3_reset=Module["cwrap"]("sqlite3_reset","number",["number"]);sqlite3_clear_bindings=Module["cwrap"]("sqlite3_clear_bindings","number",["number"]);sqlite3_finalize=Module["cwrap"]("sqlite3_finalize","number",["number"]);sqlite3_create_function_v2=Module["cwrap"]("sqlite3_create_function_v2","number",["number","string","number","number","number","number","number","number","number"]);sqlite3_value_type=Module["cwrap"]("sqlite3_value_type","number",["number"]);sqlite3_value_bytes=Module["cwrap"]("sqlite3_value_bytes","number",["number"]);sqlite3_value_text=Module["cwrap"]("sqlite3_value_text","string",["number"]);sqlite3_value_int=Module["cwrap"]("sqlite3_value_int","number",["number"]);sqlite3_value_blob=Module["cwrap"]("sqlite3_value_blob","number",["number"]);sqlite3_value_double=Module["cwrap"]("sqlite3_value_double","number",["number"]);sqlite3_result_double=Module["cwrap"]("sqlite3_result_double","",["number","number"]);sqlite3_result_null=Module["cwrap"]("sqlite3_result_null","",["number"]);sqlite3_result_text=Module["cwrap"]("sqlite3_result_text","",["number","string","number","number"]);RegisterExtensionFunctions=Module["cwrap"]("RegisterExtensionFunctions","number",["number"]);this["SQL"]={"Database":Database};for(i in this["SQL"]){Module[i]=this["SQL"][i]}NULL=0;SQLite.OK=0;SQLite.ERROR=1;SQLite.INTERNAL=2;SQLite.PERM=3;SQLite.ABORT=4;SQLite.BUSY=5;SQLite.LOCKED=6;SQLite.NOMEM=7;SQLite.READONLY=8;SQLite.INTERRUPT=9;SQLite.IOERR=10;SQLite.CORRUPT=11;SQLite.NOTFOUND=12;SQLite.FULL=13;SQLite.CANTOPEN=14;SQLite.PROTOCOL=15;SQLite.EMPTY=16;SQLite.SCHEMA=17;SQLite.TOOBIG=18;SQLite.CONSTRAINT=19;SQLite.MISMATCH=20;SQLite.MISUSE=21;SQLite.NOLFS=22;SQLite.AUTH=23;SQLite.FORMAT=24;SQLite.RANGE=25;SQLite.NOTADB=26;SQLite.NOTICE=27;SQLite.WARNING=28;SQLite.ROW=100;SQLite.DONE=101;SQLite.INTEGER=1;SQLite.FLOAT=2;SQLite.TEXT=3;SQLite.BLOB=4;SQLite.NULL=5;SQLite.UTF8=1 |
| 21 | |
| 22 | |
| 23 |
nothing calls this directly
no test coverage detected
searching dependent graphs…