${badge('npm')} ${badge('travis-status')}
${pkg.description}
${badge('dependencies')} ${badge('devDependencies')}
npm install --save ${pkg.name}
var Hapi = require('hapi');
var server = new Hapi.Server();
var options = {
tables: [
{
name: 'person',
indexes: ['firstName', 'lastName']
},
'address'
]
};
server.register(require('hapi-rethinkdb'), function (err) {
server.register({register: require('hapi-rethinkdb-init'), options: options}, function (err) {
// Table person with firstName and lastName indexes created
// Table address created
});
});
tables
- the array of tables expected byrethinkdb-init
. Please refer to the rethinkdb-init documentation.
${dependencies()}
${author()}
${license()}