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

x/mtkruto/3_storage.ts>StorageIndexedDB

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

Constructors

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

Properties

database: IDBDatabase | null
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>