From 537c62396d04533c13cc23b2cf6fa9defe5a3448 Mon Sep 17 00:00:00 2001 From: Jarred Sumner Date: Mon, 17 Jun 2024 06:52:51 -0700 Subject: [PATCH] Update sqlite.md --- docs/api/sqlite.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/api/sqlite.md b/docs/api/sqlite.md index 03766152f5daba..375bf885705c95 100644 --- a/docs/api/sqlite.md +++ b/docs/api/sqlite.md @@ -16,7 +16,7 @@ Features include: - Parameters (named & positional) - Prepared statements - Datatype conversions (`BLOB` becomes `Uint8Array`) -- World's Tiniest ORM (`query.as(MyClass)`) +- Map objects to results 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) @@ -222,7 +222,7 @@ query.all("Hello world"); Added in Bun v1.1.14 {% /callout %} -By default, the `$`, `:`, and `@` prefixes are **included** when binding values to named parameters. To bind without these prefixes, use the `bind` +By default, the `$`, `:`, and `@` prefixes are **included** when binding values to named parameters. To bind without these prefixes, use the `strict` option in the `Database` constructor. ```ts import { Database } from "bun:sqlite"; @@ -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)` - World's smallest ORM +### `.as(Class)` - Map objects to results {% callout %} Added in Bun v1.1.14