Database operation interfaces of domain.
More...
Database operation interfaces of domain.
Alter current domain to add groups.
- Parameters
-
[in] | options | The options user wants to alter Groups: The list of replica groups' names which the domain is going to add.
|
- Exceptions
-
Alter current domain.
- Parameters
-
[in] | options | The options user wants to alter Groups: The list of replica groups' names which the domain is going to contain.
eg: { "Groups": [ "group1", "group2", "group3" ] }, it means that domain
changes to contain "group1", "group2" and "group3".
We can add or remove groups in current domain. However, if a group has data
in it, remove it out of domain will be failing.
AutoSplit: Alter current domain to have the ability of automatically split or not.
If this option is set to be true, while creating collection(ShardingType is "hash") in this domain,
the data of this collection will be split(hash split) into all the groups in this domain automatically.
However, it won't automatically split data into those groups which were add into this domain later.
eg: { "Groups": [ "group1", "group2", "group3" ], "AutoSplit: true" }
|
- Exceptions
-
List all the collections in current domain.
- Returns
- The DBCursor of result
- Exceptions
-
List all the collection spaces in current domain.
- Returns
- The DBCursor of result
- Exceptions
-
Alter current domain to set attributes.
- Parameters
-
[in] | options | The options user wants to alter Groups: The list of replica groups' names which the domain is going to contain.
eg: { "Groups": [ "group1", "group2", "group3" ] }, it means that domain
changes to contain "group1", "group2" and "group3".
We can add or remove groups in current domain. However, if a group has data
in it, remove it out of domain will be failing.
AutoSplit: Alter current domain to have the ability of automatically split or not.
If this option is set to be true, while creating collection(ShardingType is "hash") in this domain,
the data of this collection will be split(hash split) into all the groups in this domain automatically.
However, it won't automatically split data into those groups which were add into this domain later.
eg: { "Groups": [ "group1", "group2", "group3" ], "AutoSplit: true" }
|
- Exceptions
-
Alter current domain to set groups.
- Parameters
-
[in] | options | The options user wants to alter Groups: The list of replica groups' names which the domain is going to contain.
We can add or remove groups in current domain. However, if a group has data
in it, remove it out of domain will be failing.
|
- Exceptions
-
Return the name of current domain.
- Returns
- The domain name
SequoiaDB.Domain.SequoiaDB |
|
get |
The documentation for this class was generated from the following file: