25 #include "bson/bson.h"
33 #define SDB_PAGESIZE_4K 4096
35 #define SDB_PAGESIZE_8K 8192
37 #define SDB_PAGESIZE_16K 16384
39 #define SDB_PAGESIZE_32K 32768
41 #define SDB_PAGESIZE_64K 65536
43 #define SDB_PAGESIZE_DEFAULT 0
69 #define SDB_INVALID_HANDLE ((ossValuePtr) 0)
95 const CHAR *pDescription,
96 const CHAR *pDetail ) ;
108 #define sdbCreateReplicaNode sdbCreateNode
110 #define sdbRemoveReplicaNode sdbRemoveNode
112 #define sdbGetReplicaNodeMaster sdbGetNodeMaster
114 #define sdbGetReplicaNodeSlave sdbGetNodeSlave
116 #define sdbGetReplicaNodeByName sdbGetNodeByName
118 #define sdbGetReplicaNodeByHost sdbGetNodeByHost
120 #define sdbGetReplicaNodeSddr sdbGetNodeAddr
122 #define sdbStartReplicaNode sdbStartNode
124 #define sdbStopReplicaNode sdbStopNode
126 #define sdbReleaseReplicaNode sdbReleaseNode
129 #define QUERY_FORCE_HINT 0x00000080
131 #define QUERY_PARALLED 0x00000100
133 #define QUERY_WITH_RETURNDATA 0x00000200
135 #define QUERY_PREPARE_MORE 0x00004000
137 #define QUERY_KEEP_SHARDINGKEY_IN_UPDATE 0x00008000
143 #define QUERY_FOR_UPDATE 0x00010000
147 #define FLG_INSERT_CONTONDUP 0x00000001
151 #define FLG_INSERT_REPLACEONDUP 0x00000004
153 #define FLG_INSERT_RETURN_OID 0x10000000
156 #define UPDATE_KEEP_SHARDINGKEY QUERY_KEEP_SHARDINGKEY_IN_UPDATE
188 const CHAR *pCipherFile,
189 CHAR *pUser, CHAR *pPasswd ) ;
205 SDB_EXPORT INT32
sdbConnect (
const CHAR *pHostName,
const CHAR *pServiceName,
206 const CHAR *pUsrName,
const CHAR *pPasswd ,
221 SDB_EXPORT INT32
sdbConnect1 (
const CHAR **pConnAddrs, INT32 arrSize,
222 const CHAR *pUsrName,
const CHAR *pPasswd ,
239 SDB_EXPORT INT32
sdbSecureConnect (
const CHAR *pHostName,
const CHAR *pServiceName,
240 const CHAR *pUsrName,
const CHAR *pPasswd ,
256 const CHAR *pUsrName,
const CHAR *pPasswd ,
275 const CHAR *pPasswd ) ;
287 const CHAR *pPasswd ) ;
539 UINT32 traceBufferSize,
561 const CHAR *pDumpFileName ) ;
680 const CHAR *pCollectionFullName,
694 const CHAR *pCollectionSpaceName,
747 CHAR *pBuffer, INT32 size ) ;
779 const CHAR *pCollectionSpaceName,
801 const CHAR *pCollectionSpaceName,
814 const CHAR *pCollectionSpaceName ) ;
839 const CHAR *pRGName ) ;
887 const INT32 *positionsArray,
888 INT32 positionsCount,
904 const CHAR *pNodeName,
921 const CHAR *pHostName,
922 const CHAR *pServiceName,
940 const CHAR **ppHostName,
941 const CHAR **ppServiceName,
942 const CHAR **ppNodeName,
984 const CHAR *pHostName,
985 const CHAR *pServiceName,
986 const CHAR *pDatabasePath,
1004 const CHAR *pHostName,
1005 const CHAR *pServiceName,
1006 const CHAR *pDatabasePath,
1022 const CHAR *pHostName,
1023 const CHAR *pServiceName,
1105 const CHAR *code ) ;
1116 const CHAR *spName ) ;
1166 const CHAR *pCollectionName,
1183 const CHAR *pCollectionName,
1203 const CHAR *pCollectionName,
1241 const CHAR *pCollectionName ) ;
1253 CHAR *pBuffer, INT32 size ) ;
1268 const CHAR *pOldName,
1269 const CHAR *pNewName,
1351 CHAR *pBuffer, INT32 size ) ;
1363 CHAR *pBuffer, INT32 size ) ;
1384 const CHAR *pSourceRG,
1385 const CHAR *pTargetRG,
1386 const bson *pSplitCondition,
1387 const bson *pSplitEndCondition ) ;
1410 const CHAR *pSourceRG,
1411 const CHAR *pTargetRG,
1412 const bson *pSplitCondition,
1413 const bson *pSplitEndCondition,
1429 const CHAR *pSourceRG,
1430 const CHAR *pTargetRG,
1448 const CHAR *pSourceRG,
1449 const CHAR *pTargetRG,
1470 const CHAR *pIndexName,
1472 BOOLEAN isEnforced ) ;
1494 const CHAR *pIndexName,
1497 INT32 sortBufferSize ) ;
1521 const CHAR *pIndexName,
1536 const CHAR *pIndexName,
1550 const CHAR *pIndexName,
1575 const CHAR *pIndexName ) ;
1642 bson *obj, bson_iterator *pId ) ;
1689 bson *obj, INT32 flags, bson *pResult ) ;
1748 SINT32 flags, bson **objs, SINT32 num ) ;
1796 SINT32 flags, bson **objs,
1892 bson *setOnInsert ) ;
2330 SDB_EXPORT
void sdbReleaseDC (
sdbDCHandle cHandle ) ;
2376 bson **obj, SINT32 num,
2391 const CHAR *subClFullName,
2403 const CHAR *subClFullName) ;
2537 const SINT64 *taskIDs,
2632 const CHAR *pDomainName,
2645 const CHAR *pDomainName ) ;
2658 const CHAR *pDomainName,
2705 const bson *options ) ;
2720 const bson * options ) ;
2736 const bson * options ) ;
2753 const bson * options ) ;
2775 const bson * options ) ;
2870 const CHAR *pTimeStamp,
2898 const bson_oid_t *oid,
2978 const bson_oid_t *oid ) ;
2990 const bson_oid_t *oid, INT64 length ) ;
3151 const bson *options ) ;
3161 const bson *options ) ;
3172 const CHAR *fullName ) ;
3194 const CHAR *hostName,
3195 const CHAR *serviceName,
3196 const bson *options ) ;
3216 const CHAR *hostName,
3217 const CHAR *serviceName,
3218 const bson *options ) ;
3231 const bson *args ) ;
3255 const bson * args ) ;
3275 const bson * args ) ;
3303 const bson * options ) ;
3315 const bson * options ) ;
3338 const bson *options ) ;
3362 const CHAR *pIndexName,
3385 SDB_EXPORT INT32 sdbGetDCName(
sdbDCHandle cHandle, CHAR *pBuffer, INT32 size ) ;
3403 SDB_EXPORT INT32 sdbGetDCDetail(
sdbDCHandle cHandle, bson *retInfo ) ;
3411 SDB_EXPORT INT32 sdbActivateDC(
sdbDCHandle cHandle ) ;
3419 SDB_EXPORT INT32 sdbDeactivateDC(
sdbDCHandle cHandle ) ;
3428 SDB_EXPORT INT32 sdbEnableReadOnly(
sdbDCHandle cHandle, BOOLEAN isReadOnly ) ;
3438 SDB_EXPORT INT32 sdbCreateImage(
sdbDCHandle cHandle,
const CHAR *pCataAddrList ) ;
3446 SDB_EXPORT INT32 sdbRemoveImage(
sdbDCHandle cHandle ) ;
3454 SDB_EXPORT INT32 sdbEnableImage(
sdbDCHandle cHandle ) ;
3462 SDB_EXPORT INT32 sdbDisableImage(
sdbDCHandle cHandle ) ;
3496 SDB_EXPORT INT32 sdbAttachGroups(
sdbDCHandle cHandle, bson *info ) ;
3505 SDB_EXPORT INT32 sdbDetachGroups(
sdbDCHandle cHandle, bson *info ) ;
3626 bson *configs, bson *options ) ;
3644 bson *configs, bson *options ) ;
3659 const CHAR *pOldName,
3660 const CHAR *pNewName,
3748 const CHAR *pSequenceName,
3749 const bson *options,
3763 const CHAR *pSequenceName,
3777 const CHAR *pOldName,
3778 const CHAR *pNewName ) ;
3789 const CHAR *pSequenceName ) ;
3816 const bson *options ) ;
3846 const INT64 value ) ;
3863 const INT32 fetchNum,
3866 INT32 *increment ) ;
3876 const INT64 startValue ) ;