https://github.com/mastilver/nosqwal-orientdb
Nosqwal adapter for Orientdb
https://github.com/mastilver/nosqwal-orientdb
Last synced: about 1 month ago
JSON representation
Nosqwal adapter for Orientdb
- Host: GitHub
- URL: https://github.com/mastilver/nosqwal-orientdb
- Owner: mastilver
- License: mit
- Created: 2016-12-08T18:13:45.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2017-05-05T19:19:06.000Z (about 9 years ago)
- Last Synced: 2026-05-10T09:13:26.527Z (3 months ago)
- Language: JavaScript
- Size: 14.6 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: readme.md
- License: license
Awesome Lists containing this project
README
# nosqwal-orientdb [](https://travis-ci.org/mastilver/nosqwal-orientdb) [](https://coveralls.io/github/mastilver/nosqwal-orientdb?branch=master)
> [Nosqwal](https://github.com/mastilver/nosqwal) adapter for Orientdb
## Install
```
$ npm install --save nosqwal-orientdb
```
## Usage
```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'
});
```
## API
### nosqwalOrientdb([options])
Retuns a noSqwal instance, see api [here](https://github.com/mastilver/nosqwal#api)
#### options.host
Type: `string`
Default: `localhost`
Hostname of the server
#### options.port
Type: `number`
Default: `2424`
Port of the server
#### options.dbName
Type: `string`
Default: `default`
Database name
#### options.user
Type: `string`
Default: `admin`
Username to connect to the database
#### options.password
Type: `string`
Default: `admin`
Password to connect to the database
## License
MIT © [Thomas Sileghem](http://mastilver.com)