Module

x/casualdb/connector.ts

Simple JSON "database" for Deno with type-safety! ⚡️
Latest
class Connector
import { Connector } from "https://deno.land/x/casualdb@v0.1.4/connector.ts";

Type Parameters

optional
Schema = any

Properties

private
_filePath: string
private
readonly
WRITE_TIMEOUT: number
private
readonly
WRITE_WORKER_OPTIONS: { type: "module"; deno: boolean; }
private
readonly
WRITE_WORKER_PATH: string

Methods

private
_checkConnection()
private
_createTaskId(): string
connect(fsPath: string, options?: ConnectOptions): Promise<void>
read()
write(data: Schema)