Skip to content

Conversation

@Oxyjun
Copy link
Contributor

@Oxyjun Oxyjun commented Jun 3, 2025

Summary

  1. Updating the shape of the D1Result object to include new fields.
  2. Updating the example code.

Screenshots (optional)

Documentation checklist

  • The documentation style guide has been adhered to.
  • If a larger change - such as adding a new page- an issue has been opened in relation to any incorrect or out of date information that this PR fixes.
  • Files which have changed name or location have been allocated redirects.

Copy link
Contributor

@windsurf-bot windsurf-bot bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me 🤙

@github-actions github-actions bot added the product:d1 D1: https://developers.cloudflare.com/d1/ label Jun 3, 2025
@hyperlint-ai
Copy link
Contributor

hyperlint-ai bot commented Jun 3, 2025

Howdy and thanks for contributing to our repo. The Cloudflare team reviews new, external PRs within two (2) weeks. If it's been two weeks or longer without any movement, please tag the PR Assignees in a comment.

We review internal PRs within 1 week. If it's something urgent or has been sitting without a comment, start a thread in the Developer Docs space internally.


PR Change Summary

Updated the D1Result object to include additional metadata fields for improved query execution insights.

  • Added new fields to the D1Result object for region and primary instance information.
  • Included SQL execution duration in milliseconds for better performance tracking.
  • Updated example response to reflect the new structure and values.

Modified Files

  • src/content/docs/d1/worker-api/return-object.mdx

How can I customize these reviews?

Check out the Hyperlint AI Reviewer docs for more information on how to customize the review.

If you just want to ignore it on this PR, you can add the hyperlint-ignore label to the PR. Future changes won't trigger a Hyperlint review.

Note specifically for link checks, we only check the first 30 links in a file and we cache the results for several hours (for instance, if you just added a page, you might experience this). Our recommendation is to add hyperlint-ignore to the PR to ignore the link check for this PR.

@github-actions github-actions bot added the size/s label Jun 3, 2025
@github-actions
Copy link
Contributor

github-actions bot commented Jun 3, 2025

This pull request requires reviews from CODEOWNERS as it changes files that match the following patterns:

Pattern Owners
/src/content/docs/d1/ @elithrar, @rozenmd, @vy-ton, @joshthoward, @oxyjun, @harshil1712, @cloudflare/pcx-technical-writing

@github-actions
Copy link
Contributor

github-actions bot commented Jun 3, 2025

@Oxyjun Oxyjun enabled auto-merge (squash) June 3, 2025 15:45
@Oxyjun Oxyjun disabled auto-merge June 4, 2025 15:45
@Oxyjun Oxyjun merged commit d418a41 into production Jun 4, 2025
11 checks passed
@Oxyjun Oxyjun deleted the jun/d1/meta-object-update branch June 4, 2025 16:08
sdnts pushed a commit to sdnts/cloudflare-docs that referenced this pull request Jul 24, 2025
…2864)

* Updating D1Result object to include the new fields

* Update src/content/docs/d1/worker-api/return-object.mdx

Co-authored-by: Lambros Petrou <[email protected]>

* Artificially changing served_by value

---------

Co-authored-by: Lambros Petrou <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

product:d1 D1: https://developers.cloudflare.com/d1/ size/s

Projects

None yet

Development

Successfully merging this pull request may close these issues.

8 participants