libsqlConnection
function libsqlConnection( options, ddl, subpath?): LibsqlConnection;Defined in: src/storage/libsql.ts:77
Build a LibsqlConnection that runs ddl (in order) once before the first use. A failed
connect or DDL is not cached: the next get() retries. Products add their own tables by passing
extra statements (au’s event log).
Parameters
Section titled “Parameters”| Parameter | Type | Default value |
|---|---|---|
options |
Pick<LibsqlStorageOptions, "url" | "authToken" | "client"> |
undefined |
ddl |
string[] |
undefined |
subpath? |
string |
SUBPATH |