This package has been deprecated

Author message:

Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.

rethinkdb-tabel-deps

1.0.2 • Public • Published

Let this stupid module create your db`s

I wrote this module because I was bored to write the world biggest waterfall to create all of my db`s and table`s and indexes for my applications.

Example

const depCreator = require("rethinkdb-tabel-deps");
 
new depCreator({
    // Options for r.connect()
    con_options: {},
    // List of dbs to create
    dbs: [
        {
            name: "niceDB1",
            // If this is true, the db will be deleted at startup and recreated
            recreate: false,
            tables: [
                {
                    name: "table1",
                    recreate: false,
                    indexes: [
                        {
                            name: "testIndex",
                            // Index options
                            options: {
                                multi: false,
                                geo: false
                            },
                            recreate: false
                        }
                    ]
                }
            ]
        },
        {
            name: "beautifulDB",
            recreate: true,
            tables: [
                {
                    name: "superTable"
                }
            ]
        }
    ]
}).doYourJob((err) => {
    if (err) console.error(err);
    console.log("I created this sh**t for you.");
});
 

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Published

Version History

  • Version
    Downloads (Last 7 Days)
    • Published

Package Sidebar

Install

npm i rethinkdb-tabel-deps

Weekly Downloads

0

Version

1.0.2

License

GPL-3.0

Last publish

Collaborators

  • dunklestoast
  • thenoim