Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/reekoheek/node-norm-sqlite


https://github.com/reekoheek/node-norm-sqlite

Last synced: 3 months ago
JSON representation

Awesome Lists containing this project

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:)