db_create
ReQL command: db_create
Command syntax
r.db_create(db_name) → object
Description
Create a database. A RethinkDB database is a collection of tables, similar to relational databases.
If successful, the command returns an object with two fields:
-
dbs_created
: always1
. -
config_changes
: a list containing one object with two fields,old_val
andnew_val
:-
old_val
: alwaysnil
. -
new_val
: the database’s new config value.
-