npm.io
1.0.1 • Published 10 years ago

rethinkdb-droptables

Licence
MIT
Version
1.0.1
Deps
0
Vulns
0
Weekly
0
Stars
1

rethinkdb-droptables

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

Installation

npm install rethinkdb-droptables

Usage

import dropTables from "rethinkdb-droptables";

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

// drop all tables
dropTables(connection, "db_name").then(() => ...);

License

MIT

Keywords