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

x/keydb/sqlite.ts>SqliteAdapter

Simple Key-value storage module with support for multiple database backends.
Latest
class SqliteAdapter
implements Adapter
import { SqliteAdapter } from "https://deno.land/x/keydb@1.0.0/sqlite.ts";

Constructors

new
SqliteAdapter(path?: string, table?: string)

Properties

db: DB
table: string

Methods

clear(namespace?): this
delete(key: string, namespace?): boolean
deleteExpired(namespace?): void
get(key: string, namespace?): KeydbFields | undefined
has(key: string, namespace?): boolean
keys(namespace?): string[]
query<T = any>(sql: string, params?: any[]): T[]
set(
key: string,
value: any,
namespace?,
ttl?,
): this