1.0.1 • Published 8 years ago

rethinkdb-insuretable v1.0.1

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

rethinkdb-insuretable

Insures that a RethinkDB table is present.

  • If table is not present, creates and returns it
  • If table present, returns it

Installation

npm install rethinkdb-insuretable

Usage

import insureTable from "rethinkdb-insuretable";
insureDb(connection, "db_name", "table_name").then(table => table.insert(...));

License

MIT