1.0.0 • Published 8 years ago

rethinkdb-cleartables v1.0.0

Weekly downloads
5
License
MIT
Repository
github
Last release
8 years ago

rethinkdb-cleartables

A helper method to delete all records in specified or all tables in RethinkDB database.

Installation

npm install rethinkdb-cleartables

Usage

import clearTables from "rethinkdb-cleartables";

// clears specified tables
clearTables(connection, "db_name", [ "table1", ... ]).then(() => ...);

// clears all tables
clearTables(connection, "db_name").then(() => ...);

License

MIT