Skip to content

Commit 6149c98

Browse files
committed
Adding information on D1PreparedStatement object.
1 parent 66d4ff9 commit 6149c98

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

src/content/docs/d1/worker-api/d1-database.mdx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,8 @@ const stmt = env.DB.prepare("SELECT * FROM Customers WHERE CompanyName = ?").bin
3535

3636
#### Return values
3737

38-
- None.
38+
- <code>D1PreparedStatement</code>: <Type text="Object"/>
39+
- An object which only contains methods `bind`,`run`, `raw`, and `first`.
3940

4041
#### Guidance
4142

src/content/docs/d1/worker-api/prepared-statements.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ const returnValue = await stmt.run();
2323

2424
- None.
2525

26-
#### Return value
26+
#### Return values
2727

2828
- <code>D1Result</code>: <Type text="Object"/>
2929
- An object containing the success status, a meta object, and an array of objects containing the query results.

0 commit comments

Comments
 (0)