Skip to main content
Module

x/denoflow/deps.ts>SqliteDb

Configuration as Code, use YAML to write automated workflows that run on Deno, with any Deno modules, Typescript/Javascript codes
Latest
class SqliteDb
Re-export
import { SqliteDb } from "https://deno.land/x/denoflow@0.0.35/deps.ts";

Simple and common Key-value storage interface for multiple Database backends.

Constructors

new
SqliteDb(adapter?: Adapter | string, options?: KeydbOptions)

Properties

optional
adapter: Adapter
optional
awaitReady: Promise<Adapter>
deserialize: (value: string) => any
namespace: string
serialize: (value: any) => string | undefined
optional
ttl: number

Methods

clear(): Promise<this>

Clear complete Database.

delete(key: string): Promise<boolean>

Delete a Key from Database.

get<T = any>(key: string): Promise<T | undefined>

Get a Value by Key name.

keys(): Promise<string[]>

Get an Array of all Key Names.

set(
key: string,
value: any,
ttl?: number,
): Promise<this>

Set a Key's Value.