BranchesNew
This section describes the administrative commands pertaining to branches.
Create empty branch
Create a new branch without schema or data.
create empty branch name ;
Description
The command create empty branch
creates a new EdgeDB branch without schema
or data, aside from standard schemas.
Create schema branch
Create a new branch copying the schema of an existing branch.
create schema branch newbranch from oldbranch ;
Description
The command create schema branch
creates a new EdgeDB branch with schema
copied from an already existing branch.
Create data branch
Create a new branch copying the schema and data of an existing branch.
create data branch newbranch from oldbranch ;
Description
The command create data branch
creates a new EdgeDB branch with schema and
data copied from an already existing branch.
Drop branch
Remove a branch.
drop branch name ;
Description
The command drop branch
removes an existing branch. It cannot be executed
while there are existing connections to the target branch.
Executing drop branch
removes data permanently and cannot be undone.
Alter branch
Rename a branch.
alter branch oldname rename to newname ;
Description
The command alter branch … rename
changes the name of an existing branch.
It cannot be executed while there are existing connections to the target
branch.