Database.create()
Create a child database.
Description
The create()
method creates a child database with the provided
data database definition.
Parameters
Parameter | Type | Required | Description |
---|---|---|---|
data |
Yes |
Object describing the child database. |
data fields
Name | Type | Required | Description |
---|---|---|---|
name |
Yes |
Name of the database to create.
The name must match the following regular expression but can’t be a
single underscore or reserved word:
|
|
history_days |
Number of days for document retention for the collection. |
||
priority |
User-defined priority assigned to the child database. |
||
typechecked |
Enable type checking: |
||
data |
Metadata for the database. |
Examples
{
name: "Growers",
coll: Database,
ts: Time("2023-06-05T19:44:23.040Z"),
global_id: "ywmp5m111yyre",
typechecked: true,
priority: 10
}
Is this article helpful?
Tell Fauna how the article can be improved:
Visit Fauna's forums
or email docs@fauna.com
Thank you for your feedback!