bun-types 1.1.19-canary.20240709T140519 → 1.1.19-canary.20240710T140452
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/sqlite.d.ts +5 -5
package/package.json
CHANGED
package/sqlite.d.ts
CHANGED
|
@@ -36,7 +36,7 @@ declare module "bun:sqlite" {
|
|
|
36
36
|
* ```ts
|
|
37
37
|
* const db = new Database("mydb.sqlite");
|
|
38
38
|
* db.run("CREATE TABLE foo (bar TEXT)");
|
|
39
|
-
* db.run("INSERT INTO foo VALUES (?)", "baz");
|
|
39
|
+
* db.run("INSERT INTO foo VALUES (?)", ["baz"]);
|
|
40
40
|
* console.log(db.query("SELECT * FROM foo").all());
|
|
41
41
|
* ```
|
|
42
42
|
*
|
|
@@ -47,7 +47,7 @@ declare module "bun:sqlite" {
|
|
|
47
47
|
* ```ts
|
|
48
48
|
* const db = new Database(":memory:");
|
|
49
49
|
* db.run("CREATE TABLE foo (bar TEXT)");
|
|
50
|
-
* db.run("INSERT INTO foo VALUES (?)", "hiiiiii");
|
|
50
|
+
* db.run("INSERT INTO foo VALUES (?)", ["hiiiiii"]);
|
|
51
51
|
* console.log(db.query("SELECT * FROM foo").all());
|
|
52
52
|
* ```
|
|
53
53
|
*
|
|
@@ -158,7 +158,7 @@ declare module "bun:sqlite" {
|
|
|
158
158
|
* @example
|
|
159
159
|
* ```ts
|
|
160
160
|
* db.run("CREATE TABLE foo (bar TEXT)");
|
|
161
|
-
* db.run("INSERT INTO foo VALUES (?)", "baz");
|
|
161
|
+
* db.run("INSERT INTO foo VALUES (?)", ["baz"]);
|
|
162
162
|
* ```
|
|
163
163
|
*
|
|
164
164
|
* Useful for queries like:
|
|
@@ -277,9 +277,9 @@ declare module "bun:sqlite" {
|
|
|
277
277
|
* @example
|
|
278
278
|
* ```ts
|
|
279
279
|
* db.run("CREATE TABLE foo (bar TEXT)");
|
|
280
|
-
* db.run("INSERT INTO foo VALUES (?)", "baz");
|
|
280
|
+
* db.run("INSERT INTO foo VALUES (?)", ["baz"]);
|
|
281
281
|
* db.run("BEGIN");
|
|
282
|
-
* db.run("INSERT INTO foo VALUES (?)", "qux");
|
|
282
|
+
* db.run("INSERT INTO foo VALUES (?)", ["qux"]);
|
|
283
283
|
* console.log(db.inTransaction());
|
|
284
284
|
* ```
|
|
285
285
|
*/
|