TypeDB 3.0 is live! Get started for free.

Creating databases

A TypeDB database is an isolated data store comprising its own schema and dataset. All TypeDB data is stored in a database.

From clients

To create a new database, connect to TypeDB and follow the steps below:

Run the following command:

database create social_network
bash

Where social_network is the name of the database.

From drivers

To create a new database programmatically:

let result = driver.databases().create("social_network").await;
rust

Where driver is an instance of a driver, connected to TypeDB, and "social_network" is the name of the database.