Skip to main content

Module branch

Module branch 

Source
Expand description

Instant branch databases.

Provisions copy-on-write-ish database branches through the proxy: CREATE DATABASE <branch> TEMPLATE <base> (vanilla PostgreSQL’s fast file-clone — the proxy-layer approximation of Neon/PlanetScale branching; a Nano backend can branch natively). The proxy issues the maintenance statements over its backend PG-wire client; clients then connect to the branch simply by database name (the proxy relays the startup unchanged), so routing is native — branching here is the provisioning + lifecycle layer.

Functions§

create
Create a branch database from base (or the configured default).
drop
Drop a branch database.
list
List user databases (excludes templates + the built-in maintenance DBs).