v1.10

Document

How to Start SequoiaDB

Basic Operation

Data Model

Database Management

Aggregation

Index

Replication

Cluster

Connector

Reference

Development

Release Note

FAQ

  • Content
  • Comments
  • History

Overview

Outline

C++ client-driven provide interfaces of database operations and cluster operations. Mainly include the following 8 lvevls: database operation, collection spaces, collections, cursor, replica group, node, domain, lob.

For more please refer to online C++ API

C++ Class Instances

C++ Client-Driven has two class instances. One is used to operate database, the other is used to operate cluster.

  • Database operation instance

    There are 3 degrees of data in SequoiaDB:

    1) Database

    2) Collection space

    3) Collection

    So, in operations of database, we can use 3 classes to represent, one for database connection, collectionspace and collection, one represents cursor, and one for LOB.

    Sdb Database class This class mainly for managing the whole database, including connection creating, collectionspace creating
    sdbCollectionSpace CollectionSpace class This mainly for managing collections
    sdbCollection Collection class This class is for CRUD operations of database
    sdbCursor Cursor class Thisclass is mainly for traverse querying. The result cursor that snapshot returning represent a cursor created from query
    sdbLob Large Object Class This class is for the operations of LOB

    C++ client-driven application operate with different instances.For example,reading data will use Cursor instance,then creating collectionspace uses database connection instance.

  • Cluster Operation Instance

    There are three degrees of cluster operation in SequoiaDB:

    1) ReplicaGroups

    2) Data Node

    3) Domain

    Note:

    ReplicaGroups contain three tpyes: Coord ReplicaGroups, Catalog ReplicaGroup, Data ReplicaGroup.

    ReplicaGroup instances, Data Node instances and domain instancescan be represented by the following three types of classes.

    sdbReplicaGroup Replica group class It represents a stand-alone ReplicaGroup
    sdbNode data node clsaa It represents a stand-alone Data Node
    sdbDomain domain clsaa It represents a stand-alone Domain

    Cluster-related operations need to use ReplicaGroup instance and Data Node instance.

    The sdbReplicaGroup instants is to manage replica groups, including starting and stopping replicagroups, getting the status, name-information and number-information of nodes in the replicagroup.

    The sdbNode instants is to manage Data Nodes, including starting and stopping the specified data node, getting the specified data node instants and maste-slave data node instants and address-information of data node.

    The sdbDomain used in the management domain, The modification of the domain, obtain the domain information such as operation.

Error Information

Each function has its returned value, the definition of the returned value is:

SDB_OK (value is 0): Execution succeeds.

< 0: Database error, the detailed error description can be found in the include/ossErr.h directory of the C++ driver development kit.

> 0: System error, please check the related error code information.

please login to comment.
Latest Comment
  • 2015-03-14

About Us

SequoiaDB is a financial-level distributed database vendor and is the first Chinese database listed in Gartner’s Magic Quadrant OPDBMS report. SequoiaDB has recently released version 3.0.
SequoiaDB is now penetrating the vertical sector Financial Industry quickly and had more than 50 banking clients and hundreds of enterprise customers in industries including government, telecommunication, Internet and IoT.

Beijing:
Tower R, No.8 North Star East Road, Chaoyang District, Beijing,China
Guangzhou:
Tower A, No.22 Qinglan Street, Panyu District, Guangzhou,China
Shenzhen:
Tsing Hua Tech Park, Nanshan District, Shenzhen,China
Tel:400-8038-339
E-mail:contact@sequoiadb.com