Creating databases
To create a new database, connect to TypeDB and follow the steps below:
-
Console
-
Studio
Run the following command:
database create social_network
Where social_network
is the name of the database.
Coming soon. |
To create a new database programmatically:
-
Rust
-
Python
-
Java
-
Node.js
-
C#
-
C++
-
C
let result = driver.databases().create("social_network").await;
Where driver
is an instance of a driver, connected to TypeDB, and "social_network"
is the name of the database.
driver.databases.create("social_network")
Where driver
is an instance of a driver, connected to TypeDB, and "social_network"
is the name of the database.
driver.databases().create("social_network");
Where driver
is an instance of a driver, connected to TypeDB, and "social_network"
is the name of the database.
Coming soon. |