Skip to content

Commit 1246ca2

Browse files
authored
Adding prepare and batch methods to (#21599)
D1DatabaseSession.
1 parent 0206ff2 commit 1246ca2

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

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

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -298,4 +298,12 @@ return { bookmark } = session.getBookmark();
298298

299299
- <code>bookmark</code>: <Type text="String | null"/>
300300
- A [`bookmark`](/d1/reference/time-travel/#bookmarks) which identifies the latest version of the database seen by the last query executed within the Session.
301-
- Returns `null` if no query is executed within a Session.
301+
- Returns `null` if no query is executed within a Session.
302+
303+
### `prepare()`
304+
305+
This method is equivalent to [`D1Database::prepare`](/d1/worker-api/d1-database/#prepare).
306+
307+
### `batch()`
308+
309+
This method is equivalent to [`D1Database::batch`](/d1/worker-api/d1-database/#batch).

0 commit comments

Comments
 (0)