Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/reekoheek/node-norm-sqlite
https://github.com/reekoheek/node-norm-sqlite
Last synced: 3 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/reekoheek/node-norm-sqlite
- Owner: reekoheek
- License: mit
- Created: 2018-01-23T20:05:38.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2023-03-04T02:32:31.000Z (over 1 year ago)
- Last Synced: 2024-07-08T13:21:13.010Z (4 months ago)
- Language: JavaScript
- Size: 286 KB
- Stars: 0
- Watchers: 2
- Forks: 2
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-xinix - node-norm-sqlite - Norm sqlite adapter - [reekoheek](https://github.com/reekoheek) (Grouping / Node)
README
# node-norm-sqlite
```js
const { Manager } = require('node-norm');let manager = new Manager({
connections: [
{
adapter: require('node-norm-sqlite'),
// db,
// file: ':memory:',
},
],
})(async () => {
await manager.runSession(async session => {
let foos = await session.factory('foo').all();
console.log(foos);
});
})();```
## Options
- db: Already open sqlite database object (optional)
- file: File name (default: :memory:)