dro

dropboxdb

Have too much Dropbox space? Concerned about the incredible speed and reliability of modern database solutions? Look no further. DropboxDB.js (DBDBJS) provides a clearly lacking API to convert your ill-gotten Dropbox space into a cheap, slow, and inefficient imitation of your alternative data stores.

Showing:

Popularity

Downloads/wk

69

GitHub Stars

10

Maintenance

Last Commit

9yrs ago

Contributors

3

Package

Dependencies

2

Size (min+gzip)

22.9KB

License

MIT

Type Definitions

Tree-Shakeable

No?

Categories

Readme

DropboxDB.js

Have too much Dropbox space? Concerned about the incredible speed and reliability of modern database solutions? Look no further. DropboxDB.js (DBDBJS) provides a clearly lacking API to convert your ill-gotten Dropbox space into a cheap, slow, and inefficient imitation of your alternative data stores.

npm install dropboxdb to use.

var dropboxdb = require('dropboxdb')

// USER

/**
 * @brief Fetch UserInfo provided by Dropbox API
 * @param callback(error, userInfo);
 */
dropboxdb.userInfo(callback);

// COLLECTIONS

/** 
 * @brief List the collections in your DBDB
 * @param callback(error, collections)
 */
dropboxdb.show(callback);

/** 
 * @brief Creates a collection in your DBDB
 * @param collection: the name of the collection
 * @param options: object optionally containing
 *          schema: array of required column names
 *          primaryKey: field to name files with
 * @param callback(error, stat)
 */
dropboxdb.create(collection, options, callback);

/**
 * @brief Drop a collection from your DBDB
 * @param collection: the name of the collection
 * @param callback(error, stat)
 */
dropboxdb.drop(collection, callback);

// RECORDS

/**
 * @brief Inserts a record into a collection
 * @param collection: the name of the collection
 * @param record: object containing record attributes
 * @param callback(error, stat)
 */
dropboxdb.insert(collection, record, callback);

/**
 * @brief Updates a record in a collection
 * @param collection: the name of the collection
 * @param key: key of the record to update
 * @param record: attributes to update with
 * @param callback(error, stat)
 */
dropboxdb.update(collection, key, record, callback);

/**
 * @brief Removes a record from a collection
 * @param collection: the name of the collection
 * @param key key of the record to remove
 * @param callback(error, stat)
 */
dropboxdb.remove(collection, key, callback);

/**
 * @brief Finds a set of records in a given collection
 * @param collection: the name of the collection
 * @param filter: the fetched collection contains only
 *                records for which filter(record) is truthy
 * @param callback(error, results)
 */
dropboxdb.find(collection, filter, callback);

Rate & Review

Great Documentation0
Easy to Use0
Performant0
Highly Customizable0
Bleeding Edge0
Responsive Maintainers0
Poor Documentation0
Hard to Use0
Slow0
Buggy0
Abandoned0
Unwelcoming Community0
100