open
open(
filename,options?):Effect<SqlClient,SessionStoreError,Scope>
Defined in: sqlite.ts:48
Opens a node SQLite client.
File paths get their parent directories created. :memory: stays in
process. File databases use WAL so another process can read the file while
the bot is running. Close the surrounding Scope to release the client.
Parameters
Section titled “Parameters”filename
Section titled “filename”string
options?
Section titled “options?”busyTimeoutMs?
Section titled “busyTimeoutMs?”number
Returns
Section titled “Returns”Effect<SqlClient, SessionStoreError, Scope>