API reference
Every public class, method, and event in @codexo/exojs. Generated from source.
interfaceDatabase
Low-level key/value database abstraction with a declared schema. Data is organised into named object stores (`type`) that act as namespaces, each holding entries keyed by `name`. The set of stores is fixed when the database is created, which makes this the backing for structured application data such as save games; the asset cache uses CacheStore, whose namespaces are data rather than schema. IndexedDbDatabase is the built-in implementation.
import { Database } from '@codexo/exojs'Low-level key/value database abstraction with a declared schema.
Data is organised into named object stores (`type`) that act as namespaces, each holding entries keyed by `name`. The set of stores is fixed when the database is created, which makes this the backing for structured application data such as save games; the asset cache uses CacheStore, whose namespaces are data rather than schema. IndexedDbDatabase is the built-in implementation.
clearStorage(type: string): Promise<boolean>connect(): Promise<boolean>delete(type: string, name: string): Promise<boolean>deleteStorage(): Promise<boolean>destroy(): voiddisconnect(): Promise<boolean>load(type: string, name: string): Promise<T | null>save(type: string, name: string, data: unknown): Promise<void>connected: booleanname: stringversion: number