Skip to content

Commit

Permalink
updated readme
Browse files Browse the repository at this point in the history
  • Loading branch information
tmarshall committed Feb 17, 2020
1 parent 29342de commit e424480
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 @@ -160,6 +160,18 @@ try {
}
```

you can also create savepoints, and rollback to these savepoints

note that if you rollback to a savepoint the sql pool connection will not be released

```js
await transaction.savepoint('some_point')

// do something else

await transaction.rollback('some_point')
```

### console logging

logging is built in - this library uses the [debug](https://www.npmjs.com/package/debug) module
Expand Down

0 comments on commit e424480

Please sign in to comment.