rethinkdb-cleartables
TypeScript icon, indicating that this package has built-in type declarations

1.0.0 • Public • Published

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

Package Sidebar

Install

npm i rethinkdb-cleartables

Weekly Downloads

0

Version

1.0.0

License

MIT

Last publish

Collaborators

  • alexgorbatchev