import { StandardDataStore } from "https://deno.land/x/dynablox_opencloud@v0.2.2/src/classes/opencloud/StandardDataStore.ts";
Standard DataStore class for Open Cloud.
Constructors
new
StandardDataStore(client: OpenCloudClient,
universeId: number,
dataStoreName: string,
scope: string,
type: keyof DataStoreType,
Construct a new BaseUniverse
Properties
private
readonly
_client: OpenCloudClientThe client to use services from.
Methods
getEntry<Data = unknown, Attributes extends Record<string, unknown> = Record<string, unknown>>(key: string): Promise<DataStoreEntry<Data, Attributes>>
Get the content of a DataStore entry.
getEntryVersion<Data = unknown>(key: string, version: string): Promise<DataStoreEntryVersion<Data>>
Get the content of a DataStore entry by version.
incrementEntry(): Promise<DataStoreEntryVersionInfo>
key: string,
incrementBy: number,
userIds?: number[],
attributes?: Record<string, unknown>,
Increment the value of an entry in a DataStore.
listAllEntries(): ServicePage<OpenCloudClient["services"]["opencloud"]["DataStoreService"]["listDataStoreEntries"], DataStoreKeyInfo[]>
prefix?: string,
limit?: number,
cursor?: string,
List all DataStore entries.
listEntries(): ServicePage<OpenCloudClient["services"]["opencloud"]["DataStoreService"]["listDataStoreEntries"], DataStoreKeyInfo[]>
prefix?: string,
limit?: number,
cursor?: string,
List all DataStore scope entries.
listEntryVersions(): ServicePage<OpenCloudClient["services"]["opencloud"]["DataStoreService"]["listDataStoreEntryVersions"], DataStoreEntryVersionInfo[]>
key: string,
limit?: number,
sortOrder?: SortOrderLong,
startTime?: string,
endTime?: string,
cursor?: string,
List all DataStore entry versions.
removeEntry(key: string): Promise<void>
Removes an entry from the DataStore.
updateEntry(): Promise<DataStoreEntryVersionInfo>
key: string,
data: unknown,
userIds?: number[],
attributes?: Record<string, unknown>,
matchKeyVersion?: string,
createOnly?: boolean,
Update the value of an entry in a DataStore.