thejsj / rethinkdb-init

Create all RethinkDB databases, tables and indexes automatically through a schema object.
https://www.npmjs.com/package/rethinkdb-init
53 stars 15 forks source link

Run init only if the table does not exist #18

Open chunsli opened 7 years ago

chunsli commented 7 years ago

Is it possible to run init only if the tables / db in question do not exist?

thejsj commented 7 years ago

Currently, no. Is there a reason you'd want this? What's the use case? Performance?

rethinkdb-init tries to ensure that everything you pass through it actually exists.

Vadorequest commented 6 years ago

I guess he wants to run the script only for a base setup of the DB, after cloning the repo to a new server for instance.

I want to do the same, I guess I'll just make a script and that's it.