Skip to content

Latest commit

 

History

History
55 lines (36 loc) · 1.15 KB

.README.md

File metadata and controls

55 lines (36 loc) · 1.15 KB

${pkg.name}

${badge('npm')} ${badge('travis-status')}

${pkg.description}

${badge('nodei')}

${badge('dependencies')} ${badge('devDependencies')}

Install

npm install --save ${pkg.name}

Use

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
	});
});

Options

Dependencies

${dependencies()}

Author

${author()}

License

${license()}