Skip to content
masterclass Buddy

Drizzle ORM · Function

jsonb

withReplicas() combines a primary database with read replicas. Drizzle routes reads to replicas and write operations to the primary.

Last updated

Syntax

withReplicas(primaryDb, [read1, read2])

In-depth API docs are only for subscribers: parameters, examples, common mistakes and interview practice.

Subscribe
  • withReplicas()
  • $primary
  • drizzle()
  • select()
  • delete()

Source: Drizzle ORM - Read Replicas. Checked 2026-11-03.