Variable GoodDBConst

GoodDB: typeof default = GoodDBMain

The main class for the GoodDB package

Example

Using the JSONDriver (sync)

const db = new GoodDB(new new JSONDriver({ 
path: './database.json'
}));

Using the MongoDBDriver (async)

const db = new GoodDB(new MongoDBDriver({
uri: "..."
}));
await db.connect();