|
|
|
@ -6,9 +6,14 @@ Functions and Classes for handle session with [@nano/sqlite](https://git.node001
|
|
|
|
|
|
|
|
|
|
### Session
|
|
|
|
|
|
|
|
|
|
Session Object has all Function to create, valid and remove Session. Sqlite can
|
|
|
|
|
be the same or a seperated database.
|
|
|
|
|
|
|
|
|
|
```
|
|
|
|
|
import { getOrCreateSqlite } from '@nano/sqlite'
|
|
|
|
|
const db = getOrCreateSqlite({ 'name': ':memory:', 'create': true, 'readwrite': true })
|
|
|
|
|
import { getOrCreateSqlite } from '@nano/session'
|
|
|
|
|
|
|
|
|
|
const db = getOrCreateSqlite({ uri: ':memory:', create: true, readwrite: true })
|
|
|
|
|
const session = new Session(db)
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|