콘텐츠로 이동
한국어

RegisterD1PluginsOptionsType

이 콘텐츠는 아직 번역되지 않았습니다.

RegisterD1PluginsOptionsType = object

Defined in: src/persistence/journals/D1PluginOptions.ts:8

readonly optional accountId?: string

Defined in: src/persistence/journals/D1PluginOptions.ts:15

Cloudflare account id applied to every store that does not set its own.


readonly optional apiToken?: string

Defined in: src/persistence/journals/D1PluginOptions.ts:19

API token applied to every store that does not set its own.


readonly optional baseUrl?: string

Defined in: src/persistence/journals/D1PluginOptions.ts:21

API base URL applied to every store that does not set its own.


readonly optional client?: 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.


readonly optional databaseId?: string

Defined in: src/persistence/journals/D1PluginOptions.ts:17

D1 database id applied to every store that does not set its own.


readonly optional durableStateStore?: D1DurableStateStoreOptions

Defined in: src/persistence/journals/D1PluginOptions.ts:29

Durable-state-store-specific options (table name).


readonly optional journal?: D1JournalOptions

Defined in: src/persistence/journals/D1PluginOptions.ts:25

Journal-specific options (table names, autoCreate).


readonly optional serializer?: Serializer

Defined in: src/persistence/journals/D1PluginOptions.ts:23

Shared payload serializer applied to every store that does not set its own.


readonly optional snapshotStore?: D1SnapshotStoreOptions

Defined in: src/persistence/journals/D1PluginOptions.ts:27

Snapshot-store-specific options (table name, keepN).