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: 23 days 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 (almost 2 years ago)
- Last Synced: 2024-11-13T00:32:37.467Z (about 1 month 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:)