Skip to content

alexgorbatchev/rethinkdb-ensuretable

Repository files navigation

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

About

A helper method to ensure RethinkDB table exists

Resources

Stars

Watchers

Forks

Packages

No packages published