Light
Dark
System
v3latest
v3latest
v2
v1

Databases

This section describes the administrative commands pertaining to databases.

Create a new database.

create database name ;

The command create database creates a new EdgeDB database.

The new database will be created with all standard schemas prepopulated.

Create a new database:

Copy
create database appdb;

Remove a database.

drop database name ;

The command drop database removes an existing database. It cannot be executed while there are existing connections to the target database.

Executing drop database removes data permanently and cannot be undone.

Remove a database:

Copy
drop database appdb;
Light
Dark
System

We use ChatGPT with additional context from our documentation to answer your questions. Not all answers will be accurate. Please join our Discord if you need more help.