@xtandard/audit/storage/libsql
libSQL / Turso storage: createLibsqlStorage() over @libsql/client, for
remote, replicated or embedded SQLite-dialect databases, with the native
event log.
import { … } from "@xtandard/audit/storage/libsql";Functions
Section titled “Functions”| Name | Summary |
|---|---|
createLibsqlStorage |
Create a libSQL/Turso-backed LibsqlAuditStorage. The tables are created on first use; connection (when constructed from url) is lazy and shared. |
Interfaces
Section titled “Interfaces”| Name | Summary |
|---|---|
LibsqlAuditStorage |
A storage backed by libSQL/Turso with the native EventLogStorage and compareAndSwap, plus close(). |
LibsqlClientLike |
Minimal structural view of the @libsql/client surface this adapter uses: execute, close and batch, which the event log needs. |
LibsqlResultLike |
One @libsql/client result set (the fields this adapter reads). |
LibsqlStorageOptions |
Options for createLibsqlStorage. |