Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/mtkruto/mod.ts>StorageIndexedDB

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

Constructors

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

Properties

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

Methods

branch(id: string): StorageIndexedDB
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>