Skip to content

Commit

Permalink
Update sqlite.md
Browse files Browse the repository at this point in the history
  • Loading branch information
Jarred-Sumner committed Jun 17, 2024
1 parent 537c623 commit 72d9251
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/api/sqlite.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ Features include:
- Parameters (named & positional)
- Prepared statements
- Datatype conversions (`BLOB` becomes `Uint8Array`)
- Map objects to results without an ORM - `query.as(MyClass)`
- Map query results to classes without an ORM - `query.as(MyClass)`
- The fastest performance of any SQLite driver for JavaScript
- `bigint` support
- Multi-query statements (e.g. `SELECT 1; SELECT 2;`) in a single call to database.run(query)
Expand Down Expand Up @@ -286,7 +286,7 @@ Since Bun v1.1.14, `.run()` returns an object with two properties: `lastInsertRo

The `lastInsertRowid` property returns the ID of the last row inserted into the database. The `changes` property is the number of rows affected by the query.

### `.as(Class)` - Map objects to results
### `.as(Class)` - Map query results to a class

{% callout %}
Added in Bun v1.1.14
Expand Down

0 comments on commit 72d9251

Please sign in to comment.