Nosqwal adapter for Orientdb
npm install nosqwal-orientdb> Nosqwal adapter for Orientdb
```
$ npm install --save nosqwal-orientdb
`js
const nosqwalOrientdb = require('nosqwal-orientdb');
const db = nosqwalOrientdb();
const userCollection = db.defineCollection('user');
userCollection.create({
username: 'Alice',
password: '*'
})
.then(alice => {
return userCollection.query(
where: {
username: {
$eq: 'Alice'
}
},
limit: 1
});
})
.then(users => {
console.log(users[0].username);
//=> 'Alice'
});
`
Retuns a noSqwal instance, see api here
#### options.host
Type: stringlocalhost
Default:
Hostname of the server
#### options.port
Type: number2424
Default:
Port of the server
#### options.dbName
Type: stringdefault
Default:
Database name
#### options.user
Type: stringadmin
Default:
Username to connect to the database
#### options.password
Type: stringadmin`
Default:
Password to connect to the database
MIT © Thomas Sileghem