Interface: StorageRef
Interface: StorageRef
Section titled “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).
Properties
Section titled “Properties”
readonlykind:"plasma:storage-ref"
Defined in: core/src/schema/table.ts:14
readonlyname:string
Defined in: core/src/schema/table.ts:15