2 post-js-header.js is to be prepended to other code to create
3 post-js.js for use with Emscripten's --post-js flag. This code
4 requires that it be running in that context. The Emscripten
5 environment must have been set up already but it will not have
6 loaded its WASM when the code in this file is run. The function it
7 installs will be run after the WASM module is loaded, at which
8 point the sqlite3 JS API bits will get set up.
10 if(!Module.postRun) Module.postRun = [];
11 Module.postRun.push(function(Module/*the Emscripten-style module object*/){
13 /* This function will contain at least the following:
15 - post-js-header.js (this file)
16 - sqlite3-api-prologue.js => Bootstrapping bits to attach the rest to
17 - common/whwasmutil.js => Replacements for much of Emscripten's glue
18 - jaccwaby/jaccwabyt.js => Jaccwabyt (C/JS struct binding)
19 - sqlite3-api-glue.js => glues previous parts together
20 - sqlite3-api-oo.js => SQLite3 OO API #1
21 - sqlite3-api-worker1.js => Worker-based API
22 - sqlite3-vfs-helper.c-pp.js => Utilities for VFS impls
23 - sqlite3-vtab-helper.c-pp.js => Utilities for virtual table impls
24 - sqlite3-vfs-opfs.c-pp.js => OPFS VFS
25 - sqlite3-vfs-opfs-sahpool.c-pp.js => OPFS SAHPool VFS
26 - sqlite3-api-cleanup.js => final API cleanup
27 - post-js-footer.js => closes this postRun() function