WebWorkerDriver

A SqlDriver implementation for interacting with SQL databases running in a Web Worker.

This driver is dialect-agnostic and is instead dependent on the Worker script's implementation to handle queries and send results back from the Worker.

See also

WebWorkerDriver.fromScriptUrl

Constructors

Link copied to clipboard
constructor(worker: Worker)

Functions

Link copied to clipboard
open override fun addListener(vararg queryKeys: String, listener: Query.Listener)
Link copied to clipboard
open override fun close()
Link copied to clipboard
Link copied to clipboard
open override fun execute(identifier: Int?, sql: String, parameters: Int, binders: SqlPreparedStatement.() -> Unit?): QueryResult<Long>
Link copied to clipboard
open override fun <R> executeQuery(identifier: Int?, sql: String, mapper: (SqlCursor) -> QueryResult<R>, parameters: Int, binders: SqlPreparedStatement.() -> Unit?): QueryResult<R>
Link copied to clipboard
Link copied to clipboard
open override fun notifyListeners(vararg queryKeys: String)
Link copied to clipboard
open override fun removeListener(vararg queryKeys: String, listener: Query.Listener)