MCPcopy
hub / github.com/sql-js/sql.js / _execSql

Function _execSql

js/sql-debug.js:313031–313136  ·  view source on GitHub ↗
($0,$1,$2)

Source from the content-addressed store, hash-verified

313029 return ($76|0);
313030}
313031function _execSql($0,$1,$2) {
313032 $0 = $0|0;
313033 $1 = $1|0;
313034 $2 = $2|0;
313035 var $$$2 = 0, $$0 = 0, $$2 = 0, $10 = 0, $11 = 0, $12 = 0, $13 = 0, $14 = 0, $15 = 0, $16 = 0, $17 = 0, $18 = 0, $19 = 0, $20 = 0, $21 = 0, $22 = 0, $23 = 0, $24 = 0, $25 = 0, $26 = 0;
313036 var $27 = 0, $28 = 0, $29 = 0, $3 = 0, $30 = 0, $31 = 0, $32 = 0, $33 = 0, $34 = 0, $35 = 0, $36 = 0, $37 = 0, $38 = 0, $39 = 0, $4 = 0, $40 = 0, $41 = 0, $42 = 0, $43 = 0, $5 = 0;
313037 var $6 = 0, $7 = 0, $8 = 0, $9 = 0, label = 0, sp = 0;
313038 sp = STACKTOP;
313039 STACKTOP = STACKTOP + 16|0;
313040 $3 = sp;
313041 $4 = (_sqlite3LockAndPrepare($0,$2,-1,128,0,$3,0)|0);
313042 $5 = ($4|0)==(0);
313043 if (!($5)) {
313044 $$0 = $4;
313045 STACKTOP = sp;return ($$0|0);
313046 }
313047 $6 = HEAP32[$3>>2]|0;
313048 $7 = (_sqlite3_step($6)|0);
313049 $8 = ($7|0)==(100);
313050 L4: do {
313051 if ($8) {
313052 while(1) {
313053 $9 = (_sqlite3_column_text($6,0)|0);
313054 $10 = ($9|0)==(0|0);
313055 if (!($10)) {
313056 $13 = (_execSql($0,$1,$9)|0);
313057 $14 = ($13|0)==(0);
313058 if (!($14)) {
313059 $$2 = $13;
313060 break L4;
313061 }
313062 }
313063 $11 = (_sqlite3_step($6)|0);
313064 $12 = ($11|0)==(100);
313065 if (!($12)) {
313066 $$2 = $11;
313067 break;
313068 }
313069 }
313070 } else {
313071 $$2 = $7;
313072 }
313073 } while(0);
313074 $15 = ($$2|0)==(101);
313075 $$$2 = $15 ? 0 : $$2;
313076 $16 = ($$$2|0)==(0);
313077 if (!($16)) {
313078 $17 = (_sqlite3_errmsg($0)|0);
313079 $18 = HEAP32[$1>>2]|0;
313080 $19 = ($18|0)==(0|0);
313081 do {
313082 if (!($19)) {
313083 $20 = ($0|0)==(0|0);
313084 if (!($20)) {
313085 $21 = ((($0)) + 464|0);
313086 $22 = HEAP32[$21>>2]|0;
313087 $23 = ($22|0)==(0|0);
313088 if (!($23)) {

Callers 2

_sqlite3VdbeExecFunction · 0.85
_execSqlFFunction · 0.85

Calls 7

_sqlite3LockAndPrepareFunction · 0.85
_sqlite3_stepFunction · 0.85
_sqlite3_column_textFunction · 0.85
_sqlite3_errmsgFunction · 0.85
_measureAllocationSizeFunction · 0.85
_sqlite3DbStrDupFunction · 0.85
_sqlite3_finalizeFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…