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: always 1.
  • config_changes: a list containing one object with two fields, old_val and new_val:
    • old_val: always nil.
    • new_val: the database’s new config value.
  • 登录查看完整内容