RegisterD1PluginsOptionsType
RegisterD1PluginsOptionsType =
object
Defined in: src/persistence/journals/D1PluginOptions.ts:8
Properties
Section titled “Properties”accountId?
Section titled “accountId?”
readonlyoptionalaccountId?:string
Defined in: src/persistence/journals/D1PluginOptions.ts:15
Cloudflare account id applied to every store that does not set its own.
apiToken?
Section titled “apiToken?”
readonlyoptionalapiToken?:string
Defined in: src/persistence/journals/D1PluginOptions.ts:19
API token applied to every store that does not set its own.
baseUrl?
Section titled “baseUrl?”
readonlyoptionalbaseUrl?:string
Defined in: src/persistence/journals/D1PluginOptions.ts:21
API base URL applied to every store that does not set its own.
client?
Section titled “client?”
readonlyoptionalclient?:D1ClientLike
Defined in: src/persistence/journals/D1PluginOptions.ts:13
Shared transport injected into all three stores — the usual case, since they
address the same database and fetch pools connections underneath.
databaseId?
Section titled “databaseId?”
readonlyoptionaldatabaseId?:string
Defined in: src/persistence/journals/D1PluginOptions.ts:17
D1 database id applied to every store that does not set its own.
durableStateStore?
Section titled “durableStateStore?”
readonlyoptionaldurableStateStore?:D1DurableStateStoreOptions
Defined in: src/persistence/journals/D1PluginOptions.ts:29
Durable-state-store-specific options (table name).
journal?
Section titled “journal?”
readonlyoptionaljournal?:D1JournalOptions
Defined in: src/persistence/journals/D1PluginOptions.ts:25
Journal-specific options (table names, autoCreate).
serializer?
Section titled “serializer?”
readonlyoptionalserializer?:Serializer
Defined in: src/persistence/journals/D1PluginOptions.ts:23
Shared payload serializer applied to every store that does not set its own.
snapshotStore?
Section titled “snapshotStore?”
readonlyoptionalsnapshotStore?:D1SnapshotStoreOptions
Defined in: src/persistence/journals/D1PluginOptions.ts:27
Snapshot-store-specific options (table name, keepN).
