Demonstrates Drizzle ORM integration with Rivet Actors for type-safe database operations.
git clone https://github.com/rivet-dev/rivet.git
cd rivet/examples/sqlite-drizzle
npm install
npm run dev- Drizzle ORM integration: Use Drizzle for type-safe database operations within actors
- Automatic migrations: Database schema migrations managed automatically
- Type-safe queries: Full TypeScript type safety from schema to queries
- Actor-scoped database: Each actor can have its own isolated database instance
This example demonstrates database integration with Rivet Actors using Drizzle ORM:
- Actor Definition (
src/backend/registry.ts): Shows how to integrate Drizzle ORM for type-safe database operations within actors
Read more about database integration, actions, and state.
MIT