1.1.0 • Published 8 years ago

rethinkdb-ensuretable v1.1.0

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

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