0.3.0 • Published 7 years ago

fastify-orientdb v0.3.0

Weekly downloads
2
License
MIT
Repository
github
Last release
7 years ago

fastify-orientdb

js-standard-style npm version npm downloads

Under the hood orientdb client is used, the options that you pass to register will be passed to the orientdb connection.

Install

npm i fastify-orientdb --save

Usage

Add it to you project with register and you are done!
You can access the Orientdb Connection via fastify.db.

const fastify = require('fastify')

fastify.register(require('fastify-orientdb'), {
  host: 'localhost',
  port: 2424,
  username: 'admin',
  password: 'admin',
  name: 'GratefulDeadCocnerts'
}, err => {
  if (err) throw err
})

fastify.listen(3000, err => {
  if (err) throw err
  console.log(`server listening on ${fastify.server.address().port}`)
})

License

Licensed under MIT.