Package-level declarations
Types
Marks API that is public only for backend modules and shared tests.
Database connection of a SQLite backend module, wrapped by SQLiteDriver. Implementations throw SQLiteJsException on SQLite errors.
Worker side of openWorkerConnection: opens the connection with open and serves requests of the main thread until it closes the connection.
Asynchronous SQLDelight driver on top of a SQLiteConnection provided by a backend module.
Exception of SQLiteDriver. Usually this class is directly returned in case of error within driver itself.
Exception that occurs from within the SQLite Node.js module of the backend.
Prepared statement of a SQLiteConnection.
Functions
Workaround suspending method to use with SQLite async driver. Use this instead of non-async method Query.executeAsList.
Opens a connection in its own worker thread. The thread imports registrarModule, which registers a SQLiteConnectionTask as taskName. Requests and rows go over a MessagePort by structured clone.
Opens a SQLiteDriver with a writer and readers reader connections, each by openWorkerConnection. Readers need WAL, so the writer switches the database file to it first.
Converts SQLiteStatement.bind parameters for backends that bind JS numbers as REAL, Long becomes a JS BigInt so it is bound as INTEGER.
Creates schema (if given) on this driver, used by backend modules' init functions.
Runs block and rethrows any JS error as SQLiteJsException.