René's URL Explorer Experiment


Title: Database | Void

Description: Define tables in TypeScript and query them with Drizzle. Use the same schema with D1, PostgreSQL, or MySQL.

Generator: VitePress v2.0.0-alpha.20

direct link

Domain: void.cloud

Links:

Skip to contenthttps://void.cloud/guide/database#VPContent
https://void.cloud/
Guidehttps://void.cloud/guide/
Platformhttps://void.cloud/guide/self-hosted-platform
Project Structurehttps://void.cloud/reference/structure
Resource Inferencehttps://void.cloud/reference/resource-inference
Confighttps://void.cloud/reference/config
CLIhttps://void.cloud/reference/cli
APIhttps://void.cloud/reference/api
Overviewhttps://void.cloud/integrations/frameworks/overview
TanStack Starthttps://void.cloud/integrations/frameworks/tanstack-start
React Routerhttps://void.cloud/integrations/frameworks/react-router
Astrohttps://void.cloud/integrations/frameworks/astro
SvelteKithttps://void.cloud/integrations/frameworks/sveltekit
Nuxthttps://void.cloud/integrations/frameworks/nuxt
Analoghttps://void.cloud/integrations/frameworks/analog
Coding Agentshttps://void.cloud/integrations/agents
Honohttps://void.cloud/integrations/hono
Cloudflarehttps://void.cloud/integrations/cloudflare
Node.js / Bun / Denohttps://void.cloud/integrations/nodejs-bun-deno
https://discord.gg/cC6TEVFKSx
https://x.com/voidzerodev
https://bsky.app/profile/voidzero.dev
https://github.com/voidzero-dev/void
https://discord.gg/cC6TEVFKSx
https://x.com/voidzerodev
https://bsky.app/profile/voidzero.dev
https://github.com/voidzero-dev/void
Introductionhttps://void.cloud/guide/
Quickstarthttps://void.cloud/guide/quickstart
Supported App Typeshttps://void.cloud/guide/app-types
Server Routinghttps://void.cloud/guide/server-routing
Overviewhttps://void.cloud/guide/pages-routing/overview
Layouts & Shared Datahttps://void.cloud/guide/pages-routing/layouts
Loaders & Propshttps://void.cloud/guide/pages-routing/loaders
Actions & Formshttps://void.cloud/guide/pages-routing/actions-and-forms
Not Found & Errorshttps://void.cloud/guide/pages-routing/errors
View Transitionshttps://void.cloud/guide/pages-routing/view-transitions
Head Managementhttps://void.cloud/guide/pages-routing/head
Islandshttps://void.cloud/guide/pages-routing/islands
Markdownhttps://void.cloud/guide/pages-routing/markdown
Static Assets Cachinghttps://void.cloud/guide/edge/static-assets
Revalidation (ISR)https://void.cloud/guide/edge/revalidation
Edge Prerenderinghttps://void.cloud/guide/edge/prerendering
Custom Headershttps://void.cloud/guide/edge/headers
Redirectshttps://void.cloud/guide/edge/redirects
Rewriteshttps://void.cloud/guide/edge/rewrites
Custom SSRhttps://void.cloud/guide/ssr
SSGhttps://void.cloud/guide/ssg
Type Safetyhttps://void.cloud/guide/type-safety
Overviewhttps://void.cloud/guide/database
D1 (SQLite)https://void.cloud/guide/database/d1
PostgreSQLhttps://void.cloud/guide/database/postgresql
MySQLhttps://void.cloud/guide/database/mysql
Typed Fetchhttps://void.cloud/guide/typed-fetch
Key-Value Storagehttps://void.cloud/guide/kv
Object Storagehttps://void.cloud/guide/storage
Durable Statehttps://void.cloud/guide/durable-state
Environment Variableshttps://void.cloud/guide/env-vars
Authenticationhttps://void.cloud/guide/auth
AIhttps://void.cloud/guide/ai
Emailhttps://void.cloud/guide/email
Sending Emailhttps://void.cloud/guide/email/sending
Receiving Emailhttps://void.cloud/guide/email/receiving
Domains and Setuphttps://void.cloud/guide/email/domains
Sandboxeshttps://void.cloud/guide/sandboxes
Cron Jobshttps://void.cloud/guide/jobs
Queueshttps://void.cloud/guide/queues
WebSocketshttps://void.cloud/guide/websockets
Server-Sent Eventshttps://void.cloud/guide/sse
Live Event Streamshttps://void.cloud/guide/live
Testinghttps://void.cloud/guide/testing
Remote Developmenthttps://void.cloud/guide/remote-dev
Deploying Your Apphttps://void.cloud/guide/deployment
Project Collaborationhttps://void.cloud/guide/project-collaboration
brought to you byhttps://voidzero.dev
​https://void.cloud/guide/database#database
Drizzle ORMhttps://orm.drizzle.team
​https://void.cloud/guide/database#choosing-a-dialect
D1 (SQLite)https://void.cloud/guide/database/d1
PostgreSQLhttps://void.cloud/guide/database/postgresql
MySQLhttps://void.cloud/guide/database/mysql
​https://void.cloud/guide/database#schema-definition
​https://void.cloud/guide/database#column-casing
​https://void.cloud/guide/database#querying
Drizzle query operatorshttps://orm.drizzle.team/docs/select
​https://void.cloud/guide/database#list-rows
​https://void.cloud/guide/database#filter-with-where
​https://void.cloud/guide/database#insert
​https://void.cloud/guide/database#update
​https://void.cloud/guide/database#delete
​https://void.cloud/guide/database#column-selection
​https://void.cloud/guide/database#ordering-and-pagination
​https://void.cloud/guide/database#joins
​https://void.cloud/guide/database#relational-queries
relationshttps://orm.drizzle.team/docs/relations
​https://void.cloud/guide/database#seeding
​https://void.cloud/guide/database#programmatic-seeding
​https://void.cloud/guide/database#sql-seeding
​https://void.cloud/guide/database#schema-derived-validators
withValidator()https://void.cloud/guide/server-routing#validation
​https://void.cloud/guide/database#cli-commands
CLI referencehttps://void.cloud/reference/cli/database#database
​https://void.cloud/guide/database#adopt-existing-drizzle
​https://void.cloud/guide/database#hand-written-migrations
​https://void.cloud/guide/database#scaffolding
CLI referencehttps://void.cloud/reference/cli/generate#code-generation
Suggest changes to this pagehttps://github.com/voidzero-dev/void/edit/main/docs/guide/database.md
Previous pageType Safetyhttps://void.cloud/guide/type-safety
Next pageD1 (SQLite)https://void.cloud/guide/database/d1
Guidehttps://void.cloud/guide/
Integrationshttps://void.cloud/integrations/frameworks/overview
Referencehttps://void.cloud/reference/structure
Vite+https://viteplus.dev
Vitehttps://vite.dev
Vitesthttps://vitest.dev
Rolldownhttps://rolldown.rs
Oxchttps://oxc.rs
VoidZerohttps://voidzero.dev
Bloghttps://voidzero.dev/blog
Discordhttps://discord.gg/cC6TEVFKSx
X.comhttps://x.com/voidzerodev
Blueskyhttps://bsky.app/profile/voidzero.dev
GitHubhttps://github.com/voidzero-dev/void

Viewport: width=device-width,initial-scale=1


URLs of crawlers that visited me.