hapi-orientdb

1.0.8 • Public • Published

hapi-orientdb

hapi plugin to use OrientDB.

Inspired by code at OrientJS Chat Example.

Usage

await server.register({
    plugin: require('hapi-orientdb'),
    options: {
        host: '0.0.0.0',
        username: 'YOUR_USERNAME_TO_ORIENTDB_SERVER',
        password: 'YOUR_PASSWORD_TO_ORIENTDB_SERVER',
        db: 'db_name',
        // Optional:
        dbUsername: 'YOUR_USERNAME_TO_ORIENTDB_DB',
        dbPassword: 'YOUR_USERNAME_TO_ORIENTDB_DB',
        port: 2424,
        httpPort: 2480,
        initOnRequestLifecycleStep: 'onRequest', // = Default value.
        forceCreateDB: true, // = Default value.
        sessionsOptions: {},
        connectOptions: {}
    }
});

Dependencies

Readme

Keywords

Package Sidebar

Install

npm i hapi-orientdb

Weekly Downloads

1

Version

1.0.8

License

MIT

Unpacked Size

6.5 kB

Total Files

5

Last publish

Collaborators

  • petervavro