SequoiaDB
|
Database operation interfaces of collection space. More...
#include <client.hpp>
Public Member Functions | |
sdbCollectionSpace () | |
Default constructor. | |
~sdbCollectionSpace () | |
Destructor. | |
INT32 | getCollection (const CHAR *pCollectionName, _sdbCollection **collection) |
INT32 | getCollection (const CHAR *pCollectionName, sdbCollection &collection) |
Get the named collection. | |
INT32 | createCollection (const CHAR *pCollection, const bson::BSONObj &options, _sdbCollection **collection) |
INT32 | createCollection (const CHAR *pCollection, const bson::BSONObj &options, sdbCollection &collection) |
Create the specified collection in current collection space with options. | |
INT32 | createCollection (const CHAR *pCollection, _sdbCollection **collection) |
INT32 | createCollection (const CHAR *pCollection, sdbCollection &collection) |
Create the specified collection in current collection space without sharding key and default ReplSize. | |
INT32 | dropCollection (const CHAR *pCollection) |
Drop the specified collection in current collection space. | |
INT32 | create () |
Create a new collection space. | |
INT32 | drop () |
Drop current collection space. | |
const CHAR * | getCSName () |
Get the current collection space name. | |
Public Attributes | |
_sdbCollectionSpace * | pCollectionSpace |
Database operation interfaces of collection space.
|
inline |
Create a new collection space.
SDB_OK | Operation Success. |
Others | Operation Fail |
|
inline |
Create the specified collection in current collection space with options.
[in] | pCollection | The collection name |
[in] | options | The options for creating collection, including "ShardingKey", "ReplSize", "IsMainCL" and "Compressed" informations, no options, if null |
[out] | collection | The return collection object . |
SDB_OK | Operation Success |
Others | Operation Fail |
|
inline |
Create the specified collection in current collection space without sharding key and default ReplSize.
[in] | pCollection | The collection name. |
[out] | collection | The return collection object. |
SDB_OK | Operation Success |
Others | Operation Fail |
|
inline |
Drop current collection space.
SDB_OK | Operation Success |
Others | Operation Fail |
|
inline |
Drop the specified collection in current collection space.
[in] | pCollection | The collection name. |
SDB_OK | Operation Success |
Others | Operation Fail |
|
inline |
Get the named collection.
[in] | pCollectionName | The full name of the collection. |
[out] | collection | The return collection object. |
SDB_OK | Operation Success |
Others | Operation Fail |
|
inline |
Get the current collection space name.
sdbclient::sdbCollectionSpace::pCollectionSpace |
A pointer of virtual base class _sdbCollectionSpace
Class sdbCollectionSpace is a shell for _sdbCollectionSpace. We use pCollectionSpace to call the methods in class _sdbCollectionSpace.