npm.io
1.1.0 • Published 10 years ago

rethinkdb-ensuretable

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

rethinkdb-ensuretable

A helper method to ensure RethinkDB table exists.

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

Installation

npm install rethinkdb-ensuretable

Usage

import ensureTable from "rethinkdb-ensuretable";
ensureTable(connection, "db_name", "table_name").then(table => table.insert(...));

License

MIT

Keywords