Thanks to visit codestin.com
Credit goes to github.com

Skip to content

docs: add a Databases guide hub under Guides#3283

Open
bartlomieju wants to merge 2 commits into
mainfrom
docs/databases-hub
Open

docs: add a Databases guide hub under Guides#3283
bartlomieju wants to merge 2 commits into
mainfrom
docs/databases-hub

Conversation

@bartlomieju

Copy link
Copy Markdown
Member

The database content was already well covered by examples and tutorials
(SQLite via the built-in node:sqlite, Postgres, MySQL, MongoDB, Redis,
DuckDB, Deno KV, plus Drizzle and Prisma tutorials), but there was no single
front door to it from the runtime sidebar.

This adds a thin Databases hub at /runtime/databases/ and wires it into the
Guides group, after HTTP Server. The page frames Deno's three paths to a
database — npm drivers running under Node compatibility, the built-in
node:sqlite, and the built-in Deno KV — then links out to the existing
examples and tutorials rather than duplicating them, in keeping with the
guides-teach / examples-show split. Deno KV is listed with a short note that
it is unstable and a link to the existing KV docs.

It is intentionally a link hub, not a new long-form guide: the runnable depth
already lives in the examples and tutorials, and this just makes it
discoverable by task from the sidebar.

The database content (SQLite, Postgres, MySQL, MongoDB, Redis, Deno KV, plus
ORM tutorials) was well covered by examples and tutorials but had no single
front door from the runtime sidebar. Add a thin Databases hub at
/runtime/databases/ that frames Deno's options (npm drivers via Node compat,
built-in node:sqlite, built-in Deno KV) and links out to the existing
examples and tutorials rather than duplicating them. Wire it into the Guides
group after HTTP Server.
Replace the thin link list with real content: explain that Deno ships
node:sqlite and Deno KV built in, and that every other database works
through the same npm driver you'd use in Node.js. Embed small runnable
SQLite, Deno KV, and Postgres snippets directly on the page (SQLite and KV
verified locally), each with its run command, then link out to the fuller
examples and tutorials.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant