Skip to content

Commit

Permalink
Add note about transaction method to sql docs page
Browse files Browse the repository at this point in the history
  • Loading branch information
DallasHoff committed May 10, 2024
1 parent 1bb77a5 commit 92c2178
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/api/sql.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ Example result:
];
```

Multiple statements can be passed in the query, but note that the results returned will only include results from the first value-returning statement. Also, only one statement in the query can have parameter bindings. Because of these restrictions, it is recommended to pass only one SQL statement per call to `sql`.
Multiple statements can be passed in the query, but note that the results returned will only include results from the first value-returning statement. Also, only one statement in the query can have parameter bindings. Because of these restrictions, it is recommended to pass only one SQL statement per call to `sql`. To run multiple statements together, use the [`transaction` method](transaction.md).

```javascript
// Warning: only returns the row with id 1.
Expand Down

0 comments on commit 92c2178

Please sign in to comment.