Skip to content

Interface: StorageRef

Defined in: core/src/schema/table.ts:13

Opaque descriptor referring to a storage adapter registered on the server. Safe to place in a schema module that is imported by both the browser and the worker; the actual r2Storage({...}) factory (which holds env bindings and secrets) lives in @sh1n4ps/plasma-server/storage/r2 and is wired up via createSyncHandler({ blobs }).

v0.3 only honours storageRef("default"); per-table overrides ship in v0.4 (createSyncHandler throws when a non-default ref is seen).

readonly kind: "plasma:storage-ref"

Defined in: core/src/schema/table.ts:14


readonly name: string

Defined in: core/src/schema/table.ts:15