You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
> There is currently only support for document databases (the so-called "SQL API"), with support for Gremlin, Table and Cassandra data models planned.
18
+
> There is currently support for document databases (the so-called "SQL API") and Gremlin graphs. Support for Table and Cassandra data models planned.
17
19
18
20
#### Cosmos DB Builder
19
21
The CosmosDB builder abstracts the idea of an account and database into one. If you wish to "re-use" an already-created Cosmos DB account, use the `link_to_account` keyword - no account will be created and the database will be attached to the existing one.
20
22
21
-
| Applies To | Keyword | Purpose |
22
-
|-|-|-|
23
-
| Database | name | Sets the name of the database. |
24
-
| Database | link_to_account | Instructs Farmer to link this database to an existing Cosmos DB account rather than creating a new one. |
25
-
| Database | throughput | Sets the throughput with either "provisioned throughput" or "serverless". |
26
-
| Database | add_containers | Adds a list of containers to the database. |
27
-
| Account | account_name | Sets the name of the CosmosDB account. |
28
-
| Account |api (not yet implemented)| Sets the API and data model to use -- currently defaults to "Core (SQL)". |
29
-
| Account | enable_public_network_access | Enables public network access for the account. |
23
+
| Applies To | Keyword | Purpose |
24
+
|-|-------------------------------|-|
25
+
| Database | name | Sets the name of the database. |
26
+
| Database | link_to_account | Instructs Farmer to link this database to an existing Cosmos DB account rather than creating a new one. |
27
+
| Database | throughput | Sets the throughput with either "provisioned throughput" or "serverless". |
28
+
| Database | add_containers | Adds a list of containers to the database. |
29
+
| Account | account_name | Sets the name of the CosmosDB account. |
30
+
| Account |kind | Sets the API and data model to use -- currently defaults to "Core (SQL)". |
31
+
| Account | enable_public_network_access | Enables public network access for the account. |
30
32
| Account | disable_public_network_access | Disables public network access for the account. |
31
-
| Account | consistency_policy | Sets the consistency policy of the database. |
32
-
| Account | failover_policy | Sets the failover policy of the database. |
33
-
| Account | free_tier | Registers this server with the free pricing tier, if supported and allowed by Azure. |
33
+
| Account | consistency_policy | Sets the consistency policy of the database. |
34
+
| Account | failover_policy | Sets the failover policy of the database. |
35
+
| Account | free_tier | Registers this server with the free pricing tier, if supported and allowed by Azure. |
34
36
35
37
#### Cosmos Container Builder
36
38
The container builder allows you to create and configure a specific container that is attached to a cosmos database.
37
39
38
-
| Keyword | Purpose |
39
-
|-|-|
40
-
| name | Sets the name of the container. |
41
-
| partition_key | Sets the partition key of the container. |
42
-
| add_index | Adds an index to the container. |
43
-
| exclude_path | Excludes a path from the container index. |
0 commit comments