main v0.1.0
HerrHase 3 months ago
parent 4c870a46e1
commit a6c1a36b64

@ -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)
```

Loading…
Cancel
Save