DurableObjectSqliteMetaConnectorOptions
The DurableObjectSqliteMetaConnectorOptions type describes the options for creating a meta connector that uses Cloudflare Durable Object's built-in SQLite storage.
(
{sqlStorage: SqlStorage} &
DatabaseMetaConnectorOptions<Depth>
)| Type | Description | |
|---|---|---|
sqlStorage | SqlStorage | The SqlStorage instance from the Durable Object storage context. |
Example
const metaConnector = createDurableObjectSqliteMetaConnector({
depth: 3,
sqlStorage: this.ctx.storage.sql,
metaTable: 'meta',
addressColumn: 'address',
timestampColumn: 'timestamp',
});
Since
v0.0.6