Skip to content
PricingReleases

PluginStorageScopeApi

Defined in: plugin.ts:685

blobStore(name, definition): PluginStorageBlobStore

Defined in: plugin.ts:731

string

number

number

"none" | "shared" | "private"

PluginStorageBlobStore


collection<T>(name, definition): PluginStorageCollection<T>

Defined in: plugin.ts:686

T

string

string[]

number

number

object[]

Forward-only upgrades for this collection’s own records, owned by the plugin that declares them. Raising schemaVersion without a step covering the stored version fails the read rather than silently dropping data.

"sqlite"

number

"none" | "shared" | "private"

PluginStorageCollection<T>


documents<M>(name, definition): PluginDocumentStore<M>

Defined in: plugin.ts:710

M

string

string[]

"file" | "directory"

number

number

number

object[]

string

string

"sqlite"

number

"none" | "shared" | "private"

PluginDocumentStore<M>


usage(): object

Defined in: plugin.ts:739

object

bytes: number

collections: number

optional documents?: number