SequoiaDB
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
Classes | Typedefs | Enumerations | Functions
sdbclient Namespace Reference

SequoiaDB Driver for C++. More...

Classes

class  sdbCursor
 Database operation interfaces of cursor. More...
 
class  sdbCollection
 Database operation interfaces of collection. More...
 
class  sdbNode
 Database operation interfaces of node. This class takes the place of class "sdbReplicaNode". More...
 
class  sdbReplicaGroup
 Database operation interfaces of replica group. More...
 
class  sdbCollectionSpace
 Database operation interfaces of collection space. More...
 
class  sdbDomain
 Database operation interfaces of domain. More...
 
class  sdbLob
 Database operation interfaces of large object. More...
 
class  sdbSequence
 Database operation interfaces of sequence. More...
 
class  sdbDataSource
 Database operation interfaces of data source. More...
 
class  sdb
 Database operation interfaces of admin. More...
 
class  sdbConnectionPoolConf
 The configure of sdb connection pool. More...
 
class  sdbConnectionPool
 The sdb connection pool. More...
 

Typedefs

typedef void(* ERROR_ON_REPLY_FUNC )(const CHAR *pErrorObj, UINT32 objSize, INT32 flag, const CHAR *pDescription, const CHAR *pDetail)
 
typedef class sdb sdb
 Class sdb definition for sdb.
 

Enumerations

enum  sdbNodeStatus
 
enum  SDB_CONN_STRATEGY { SDB_CONN_STY_SERIAL, SDB_CONN_STY_RANDOM, SDB_CONN_STY_LOCAL, SDB_CONN_STY_BALANCE }
 

Functions

SDB_EXPORT void sdbSetErrorOnReplyCallback (ERROR_ON_REPLY_FUNC func)
 Set the callback function when reply message if error from server.
 
SDB_EXPORT INT32 initClient (sdbClientConf *config)
 set client global configuration such as cache strategy to improve performance
 

Detailed Description

SequoiaDB Driver for C++.

Typedef Documentation

typedef void(* sdbclient::ERROR_ON_REPLY_FUNC)(const CHAR *pErrorObj, UINT32 objSize, INT32 flag, const CHAR *pDescription, const CHAR *pDetail)

Callback function when the reply message is error

Enumeration Type Documentation

Enumerator:
SDB_CONN_STY_SERIAL 

serial strategy

SDB_CONN_STY_RANDOM 

random strategy

SDB_CONN_STY_LOCAL 

local strategy

SDB_CONN_STY_BALANCE 

balance strategy

The status of the node.

Function Documentation

INT32 sdbclient::initClient ( sdbClientConf config)

set client global configuration such as cache strategy to improve performance

Parameters
[in]configThe configuration struct, see detail of sdbClientConf
Return values
SDB_OKOperation Success
OthersOperation Fail
INT32 sdbclient::sdbSetErrorOnReplyCallback ( ERROR_ON_REPLY_FUNC  func)

Set the callback function when reply message if error from server.

Parameters
[in]funcThe callback function when called on reply error