Skip to main content
Module

x/bracesdb/filedb.ts>FileDB

DB that JSON format created with Deno
Latest
class FileDB
import { FileDB } from "https://deno.land/x/bracesdb@v2.0.0/filedb.ts";

Constructors

new
FileDB(option: FileDBOption)

Properties

private
data: T[]
private
readonly
file: string
private
readonly
optional
folder: string

Methods

add(object: T, keyword: keyof T)

Add an Object to the DB

delete(key: keyof T, keyword: T[keyof T])

Remove matching objects from DB

find(key?: keyof T, keyword?: T[keyof T] | RegExp)

Searching the DB