Package Exports
- rethinkdb-cleartables
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (rethinkdb-cleartables) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
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