bun-types 1.1.27-canary.20240826T140543 → 1.1.27-canary.20240828T140514
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 +8 -8
package/package.json
CHANGED
package/sqlite.d.ts
CHANGED
|
@@ -556,7 +556,7 @@ declare module "bun:sqlite" {
|
|
|
556
556
|
* // => [{bar: "baz"}]
|
|
557
557
|
*
|
|
558
558
|
* stmt.all();
|
|
559
|
-
* // => [
|
|
559
|
+
* // => []
|
|
560
560
|
*
|
|
561
561
|
* stmt.all("foo");
|
|
562
562
|
* // => [{bar: "foo"}]
|
|
@@ -575,14 +575,14 @@ declare module "bun:sqlite" {
|
|
|
575
575
|
* ```ts
|
|
576
576
|
* const stmt = db.prepare("SELECT * FROM foo WHERE bar = ?");
|
|
577
577
|
*
|
|
578
|
-
* stmt.
|
|
579
|
-
* // =>
|
|
578
|
+
* stmt.get("baz");
|
|
579
|
+
* // => {bar: "baz"}
|
|
580
580
|
*
|
|
581
|
-
* stmt.
|
|
582
|
-
* // =>
|
|
581
|
+
* stmt.get();
|
|
582
|
+
* // => null
|
|
583
583
|
*
|
|
584
|
-
* stmt.
|
|
585
|
-
* // =>
|
|
584
|
+
* stmt.get("foo");
|
|
585
|
+
* // => {bar: "foo"}
|
|
586
586
|
* ```
|
|
587
587
|
*
|
|
588
588
|
* The following types can be used when binding parameters:
|
|
@@ -769,7 +769,7 @@ declare module "bun:sqlite" {
|
|
|
769
769
|
* query.as(User);
|
|
770
770
|
* const user = query.get();
|
|
771
771
|
* console.log(user.birthdate);
|
|
772
|
-
* // => Date(1995,
|
|
772
|
+
* // => Date(1995, 12, 19)
|
|
773
773
|
* ```
|
|
774
774
|
*/
|
|
775
775
|
as<T = unknown>(Class: new (...args: any[]) => T): Statement<T, ParamsType>;
|