Databases

This section describes the administrative commands pertaining to databases.

Create database

Create a new database.

  1. create database name ;

Description

The command create database creates a new EdgeDB database.

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

Examples

Create a new database:

  1. create database appdb;

Drop database

Remove a database.

  1. drop database name ;

Description

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.

Examples

Remove a database:

  1. drop database appdb;