Skip to content

Database

github-actions[bot] edited this page Jan 12, 2025 · 3 revisions

@gavinhsmith/simpledb


@gavinhsmith/simpledb / lib/database / Database

Function: Database()

Database(file, config): Database

Defined in: lib/database.ts:14

Loads a database, or creates one if it did not already exist.

Parameters

file

string

The file to hook the database into. If memory or disk uses an non-persistant database in the respective location.

config

Partial<Config>

Configuration options for the Database.

Returns

Database

An instance hooked into your database.

Clone this wiki locally