Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add Hub database in the devtools #29

Merged
merged 2 commits into from
Mar 24, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions docs/content/docs/2.storage/1.database.md
Original file line number Diff line number Diff line change
Expand Up @@ -214,3 +214,11 @@ The methods [`.all()`](#all) and [`.batch()`](#batch) return an object that cont
::callout
Read more on [Cloudflare D1 documentation](https://developers.cloudflare.com/d1/build-databases/query-databases/).
::

## Nuxt Devtools

You can use the Nuxt Devtools to inspect the database and run queries, powered by [Drizzle Studio](https://orm.drizzle.team/drizzle-studio/overview).

Open the Nuxt Devtools and navigate to the Hub Database.

![Nuxt Devtools - Hub Database](/nuxthub-devtools-database.png){.rounded}
Binary file added docs/public/nuxthub-devtools-database.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@
},
"dependencies": {
"@cloudflare/workers-types": "^4.20240320.1",
"@nuxt/devtools-kit": "^1.1.3",
"@nuxt/kit": "^3.11.1",
"@sindresorhus/slugify": "^2.2.1",
"@uploadthing/mime-types": "^0.2.6",
Expand Down
Loading
Loading