API reference › @evolu/sqlite-wasm › openSahPool
function openSahPool(
__namedParameters: SahPoolOptions,
): Task<SahPool, SahPoolError, OpfsRootDep & SqliteWasmDep>;
Defined in: packages/sqlite-wasm/src/SahPool.ts:479
Opens the pool in a directory, registering its VFS on first use.
Dispose every database on the pool before the pool; disposing a pool with an open file throws, because closing a handle under SQLite would corrupt its state, unless a trap broke the instance, after which SQLite never runs again.