FileDB.js

Constructor

Syntax

var myDB = new FileDB(["path/to/dbdata-files"]);

Opening without path (the synchronous way)

Creating a table with myDB.table() won't try to load the table from file first. Instead it creates the table directly and returns the pointer immediately.

Opening with path (the asynchronous way)

Loading/creating a table with myDB.table() tries to load the table structure and data sets from files first. If it failes the table will be created with defined structure and options. The table pointer will be returned twice, first as function return and second as argument of callback function.