diff options
author | stephan <stephan@noemail.net> | 2022-12-09 12:12:49 +0000 |
---|---|---|
committer | stephan <stephan@noemail.net> | 2022-12-09 12:12:49 +0000 |
commit | 3ec44736b51d1f8ed7239654e1ee891e93fd7577 (patch) | |
tree | c3a0b2e954bfe3565ec52cfb5474445be95b906e /ext/wasm/api/sqlite3-wasm.c | |
parent | 81a368317456d9c1500e33949b214185e1e0b565 (diff) | |
download | sqlite-3ec44736b51d1f8ed7239654e1ee891e93fd7577.tar.gz sqlite-3ec44736b51d1f8ed7239654e1ee891e93fd7577.zip |
Remove some unused sqlite3_status() codes from the JS API. Add custom JS wrappers for sqlite3_create_collation/_v2() which accept JS functions (plus tests). Expand the argument options for sqlite3_wasm_db_error() to enable it to translate exception objects to C-level errors.
FossilOrigin-Name: 073a2f1eb006230ae0995a5ea6c789407bcaa819ec15b5064c66d8973ed4671a
Diffstat (limited to 'ext/wasm/api/sqlite3-wasm.c')
-rw-r--r-- | ext/wasm/api/sqlite3-wasm.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/ext/wasm/api/sqlite3-wasm.c b/ext/wasm/api/sqlite3-wasm.c index ec0f72f73..dbed1b684 100644 --- a/ext/wasm/api/sqlite3-wasm.c +++ b/ext/wasm/api/sqlite3-wasm.c @@ -706,12 +706,12 @@ const char * sqlite3_wasm_enum_json(void){ DefInt(SQLITE_STATUS_MEMORY_USED); DefInt(SQLITE_STATUS_PAGECACHE_USED); DefInt(SQLITE_STATUS_PAGECACHE_OVERFLOW); - DefInt(SQLITE_STATUS_SCRATCH_USED) /* NOT USED */; - DefInt(SQLITE_STATUS_SCRATCH_OVERFLOW) /* NOT USED */; + //DefInt(SQLITE_STATUS_SCRATCH_USED) /* NOT USED */; + //DefInt(SQLITE_STATUS_SCRATCH_OVERFLOW) /* NOT USED */; DefInt(SQLITE_STATUS_MALLOC_SIZE); DefInt(SQLITE_STATUS_PARSER_STACK); DefInt(SQLITE_STATUS_PAGECACHE_SIZE); - DefInt(SQLITE_STATUS_SCRATCH_SIZE) /* NOT USED */; + //DefInt(SQLITE_STATUS_SCRATCH_SIZE) /* NOT USED */; DefInt(SQLITE_STATUS_MALLOC_COUNT); } _DefGroup; |