1.1.0 • Published 8 years ago
rethinkdb-ensuretable v1.1.0
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
1.1.0
8 years ago