Skip to content

Commit

Permalink
Update readme
Browse files Browse the repository at this point in the history
  • Loading branch information
theogravity committed Mar 22, 2020
1 parent 7285bdb commit 1d74add
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,9 @@
- [Without caching](#without-caching)
- [With caching](#with-caching)
- [Enable verbose / debug mode](#enable-verbose--debug-mode)
- [Tracing SQL errors](#tracing-sql-errors)
- [With a custom driver](#with-a-custom-driver)
- [Opening multiple databases](#opening-multiple-databases)
- [`open` config params](#open-config-params)
- [Examples](#examples)
- [Creating a table and inserting data](#creating-a-table-and-inserting-data)
Expand Down Expand Up @@ -144,6 +146,16 @@ import sqlite3 from 'sqlite3'
sqlite3.verbose()
```

#### Tracing SQL errors

For more info, see this [doc](https://github.com/mapbox/node-sqlite3/wiki/Debugging#databaseontrace-callback).

```typescript
db.on('trace', (data) => {

})
```

#### With a custom driver

You can use an alternative library to `sqlite3` as long as it conforms to the `sqlite3` [API](https://github.com/mapbox/node-sqlite3/wiki/API).
Expand Down

0 comments on commit 1d74add

Please sign in to comment.