-
-
Notifications
You must be signed in to change notification settings - Fork 243
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Return raw SQL query results in sql-sqlite-node (#3607)
Co-authored-by: Tim <[email protected]>
- Loading branch information
1 parent
10bf621
commit e38b3dc
Showing
3 changed files
with
77 additions
and
37 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
--- | ||
"@effect/sql-sqlite-node": patch | ||
--- | ||
|
||
Return raw SQL query results in sql-sqlite-node | ||
|
||
```ts | ||
response = yield* sql`INSERT INTO test (name) VALUES ('hello')`.raw | ||
assert.deepStrictEqual(response, { changes: 1, lastInsertRowid: 1 }) | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters