📜
WastefulDB Docs
AsyncWastefulDB
AsyncWastefulDB
  • Constructor Setup
  • Functions
Powered by GitBook
On this page
  • Quick Setup
  • Setup Options
  • • path
  • • feedback
  • • parse
  • • kill

Constructor Setup

This is the setup page for the Asynchronous WastefulDB module. Not everything

Quick Setup

const AsyncWastefulDB = require("wastefuldb/async");
const db = new AsyncWastefulDB();

Setup Options

// These are the default arguments when left empty.
new AsyncWastefulDB({
    path: "./syncData/"
    feedback: true,
    parse: true,
    kill: false
})

• path

Specifying a path will override the default directory each function uses to create, find, and update documents. This won't override the directories specified using the {dir} parameter in each function.

• feedback

A confirmation message will be sent to stdout (aka console.log) after each function is executed successfully. Most messages will include the target document's identifier.

• parse

Dictates whether or not the JSON contained in a document should be parsed when returned after a function is executed. Data is always stringified when written to documents.

• kill

NextFunctions

Last updated 9 months ago

()

Refer to the normal docs