Skip to content

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.

string

number

Effect<SqlClient, SessionStoreError, Scope>