Skip to main content

create_branch

Function create_branch 

Source
pub async fn create_branch(admin: &PgPool, source_db: &str) -> Result<String>
Expand description

Create an ephemeral branch of source_db and register it for drop at process exit. The source must have no active connections (PostgreSQL requires this of CREATE DATABASE ... TEMPLATE); pgmt itself never connects to it.