From c91cae2ba4173d04e333173efd7cec1933d819f0 Mon Sep 17 00:00:00 2001 From: ignoramous Date: Mon, 16 Jun 2025 21:13:52 +0530 Subject: [PATCH 1/3] d1: link getting started D1 database binding instructions are in the Getting Started page --- src/content/docs/d1/worker-api/index.mdx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/content/docs/d1/worker-api/index.mdx b/src/content/docs/d1/worker-api/index.mdx index 65fd1b7278d5dea..e1b683bee7650dd 100644 --- a/src/content/docs/d1/worker-api/index.mdx +++ b/src/content/docs/d1/worker-api/index.mdx @@ -9,7 +9,7 @@ import { DirectoryListing, Details, Steps } from "~/components"; You can execute SQL queries on your D1 database from a Worker using the Worker Binding API. To do this, you can perform the following steps: -1. [Bind the D1 Database](/d1/worker-api/d1-database). +1. [Bind the D1 Database](d1/get-started/#3-bind-your-worker-to-your-d1-database). 2. [Prepare a statement](/d1/worker-api/d1-database/#prepare). 3. [Run the prepared statement](/d1/worker-api/prepared-statements). 4. Analyze the [return object](/d1/worker-api/return-object) (if necessary). From b7be3005aa0ec01efdfc7d2214350c67f2d0f3dd Mon Sep 17 00:00:00 2001 From: ignoramous Date: Mon, 16 Jun 2025 21:19:34 +0530 Subject: [PATCH 2/3] d1/limits: fmt Position free and paid qualifiers uniformly across the limits table --- src/content/docs/d1/platform/limits.mdx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/content/docs/d1/platform/limits.mdx b/src/content/docs/d1/platform/limits.mdx index 45e03b6a746e26c..d861aa1f7bb983d 100644 --- a/src/content/docs/d1/platform/limits.mdx +++ b/src/content/docs/d1/platform/limits.mdx @@ -15,7 +15,7 @@ import { Render, Details } from "~/components"; | Maximum storage per account | 250 GB (Workers Paid)[^1] / 5 GB (Free) | | [Time Travel](/d1/reference/time-travel/) duration (point-in-time recovery) | 30 days (Workers Paid) / 7 days (Free) | | Maximum Time Travel restore operations | 10 restores per 10 minute (per database) | -| Queries per Worker invocation (read [subrequest limits](/workers/platform/limits/#how-many-subrequests-can-i-make)) | 50 (Free) / 1000 (Paid) | +| Queries per Worker invocation (read [subrequest limits](/workers/platform/limits/#how-many-subrequests-can-i-make)) | 1000 (Workers Paid) / 50 (Free) | | Maximum number of columns per table | 100 | | Maximum number of rows per table | Unlimited (excluding per-database storage limits) | | Maximum string, `BLOB` or table row size | 2,000,000 bytes (2 MB) | @@ -69,4 +69,4 @@ Note that the 10 GB limit of a D1 database cannot be further increased. You can open up to six connections (to D1) simultaneously for each invocation of your Worker. -For more information on a Worker's simultaneous connections, refer to [Simultaneous open connections](/workers/platform/limits/#simultaneous-open-connections). \ No newline at end of file +For more information on a Worker's simultaneous connections, refer to [Simultaneous open connections](/workers/platform/limits/#simultaneous-open-connections). From 948d083feca00282d1370de74bc7874874f22310 Mon Sep 17 00:00:00 2001 From: Jun Lee Date: Wed, 25 Jun 2025 10:56:12 +0100 Subject: [PATCH 3/3] Update src/content/docs/d1/worker-api/index.mdx --- src/content/docs/d1/worker-api/index.mdx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/content/docs/d1/worker-api/index.mdx b/src/content/docs/d1/worker-api/index.mdx index e1b683bee7650dd..586f92c67e2cdac 100644 --- a/src/content/docs/d1/worker-api/index.mdx +++ b/src/content/docs/d1/worker-api/index.mdx @@ -9,7 +9,7 @@ import { DirectoryListing, Details, Steps } from "~/components"; You can execute SQL queries on your D1 database from a Worker using the Worker Binding API. To do this, you can perform the following steps: -1. [Bind the D1 Database](d1/get-started/#3-bind-your-worker-to-your-d1-database). +1. [Bind the D1 Database](/d1/get-started/#3-bind-your-worker-to-your-d1-database). 2. [Prepare a statement](/d1/worker-api/d1-database/#prepare). 3. [Run the prepared statement](/d1/worker-api/prepared-statements). 4. Analyze the [return object](/d1/worker-api/return-object) (if necessary).