Skip to main content
Module

x/mtkruto/mod.ts>StorageIndexedDB

Cross-runtime JavaScript library for building Telegram clients
Go to Latest
class StorageIndexedDB
implements Storage
import { StorageIndexedDB } from "https://deno.land/x/mtkruto@0.1.702/mod.ts";

Constructors

new
StorageIndexedDB(name: string, params?: StorageIndexedDBParams)

Properties

database: IDBDatabase | null
readonly
mustSerialize: boolean
readonly
name: string
readonly
supportsFiles: boolean

Methods

get<T>(
k: readonly StorageKeyPart[],
tx_?: IDBTransaction | null,
fix?,
): Promise<T | null>
getMany<T>(
filter: GetManyFilter,
params?: { limit?: number; reverse?: boolean; },
tx_?: IDBTransaction,
): AsyncGenerator<[readonly StorageKeyPart[], T]>
incr(key: readonly StorageKeyPart[], by: number)
initialize(): Promise<void>
set(
k: readonly StorageKeyPart[],
v: unknown,
tx_?: IDBTransaction,
): Promise<void>