Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
vitaly-t committed Mar 10, 2015
1 parent 1548192 commit c9a61e4
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,9 @@ db.tx(function(ctx){
A detached transaction acquires a connection and exposes object ```ctx``` to let all containing queries execute on the same connection.

And when executing a transaction within a shared connection chain, the only thing that changes is that parameter ```ctx``` becomes the
same as parameter ```sco``` from opening a shared connection, so either one can be used inside such a transaction interchangeably:
same as parameter ```sco``` from opening a shared connection, so either one can be used inside such a transaction interchangeably.

###### Example of a shared transaction:
```javascript
var promise = require('promise');
var sco; // shared connection object;
Expand Down

0 comments on commit c9a61e4

Please sign in to comment.