Skip to content

Commit 00a1682

Browse files
committed
Merging sql-storage into storage-api chapter.
1 parent 4b60e00 commit 00a1682

File tree

13 files changed

+227
-236
lines changed

13 files changed

+227
-236
lines changed

public/__redirects

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -387,6 +387,7 @@
387387
/durable-objects/api/hibernatable-websockets-api/ /durable-objects/best-practices/websockets/ 301
388388
/durable-objects/api/alarms-in-durable-objects/ /durable-objects/api/alarms/ 301
389389
/durable-objects/api/websockets/ /durable-objects/best-practices/websockets/ 301
390+
/durable-objects/api/sql-storage/ /durable-objects/api/storage-api/ 301
390391
/durable-objects/platform/data-location/ /durable-objects/reference/data-location/ 301
391392
/durable-objects/platform/environments/ /durable-objects/reference/environments/ 301
392393
/durable-objects/platform/troubleshooting/ /durable-objects/observability/troubleshooting/ 301

src/content/docs/agents/api-reference/schedule-tasks.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ Calling `await this.schedule` returns a `Schedule`, which includes the task's ra
7070

7171
:::note[Maximum scheduled tasks]
7272

73-
Each task is mapped to a row in the Agent's underlying [SQLite database](/durable-objects/api/sql-storage/), which means that each task can be up to 2 MB in size. The maximum number of tasks must be `(task_size * tasks) + all_other_state < maximum_database_size` (currently 1GB per Agent).
73+
Each task is mapped to a row in the Agent's underlying [SQLite database](/durable-objects/api/storage-api/), which means that each task can be up to 2 MB in size. The maximum number of tasks must be `(task_size * tasks) + all_other_state < maximum_database_size` (currently 1GB per Agent).
7474

7575
:::
7676

src/content/docs/agents/api-reference/store-and-sync-state.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -227,7 +227,7 @@ Learn more about the zero-latency SQL storage that powers both Agents and Durabl
227227

228228
:::
229229

230-
The SQL API exposed to an Agent is similar to the one [within Durable Objects](/durable-objects/api/sql-storage/): Durable Object SQL methods available on `this.ctx.storage.sql`. You can use the same SQL queries with the Agent's database, create tables, and query data, just as you would with Durable Objects or [D1](/d1/).
230+
The SQL API exposed to an Agent is similar to the one [within Durable Objects](/durable-objects/api/storage-api/#sql-api): Durable Object SQL methods available on `this.ctx.storage.sql`. You can use the same SQL queries with the Agent's database, create tables, and query data, just as you would with Durable Objects or [D1](/d1/).
231231

232232
### Use Agent state as model context
233233

src/content/docs/durable-objects/api/sql-storage.mdx

Lines changed: 0 additions & 204 deletions
This file was deleted.

0 commit comments

Comments
 (0)