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

SequoiaDB C# driver provides an interface database operations, and cluster operations. Database operations, including connectivity, users create a database to delete, add or delete data to the investigation, remove the index is created, the snapshot acquisition and replacement, as well as the creation of collections adn collection space deletion operations. Cluster operations including operations management and data nodes replica groups, such as starting, stopping replica groups, start, stop data nodes, obtain data from the master node, a collection off films.For more details, please refer to the online C# API

C# class instance

C# class instance two drives. A database operation, another operation for the cluster.

  • Examples of database operations

    SequoiaDB stored in the database in divided into three levels:
    1) database
    2) collection of space
    3) collection

    Therefore, database operations, respectively, connected by three class represents a collection space, a collection of instances of a class represents another cursor.

    SequoiaDB Database instance Represents a single database connection
    CollectionSpace Examples of the collection space Represents a separate set of space
    DBCollection Collection instance A separate set of representatives
    DBCursor Cursor instance Represents a query result sets generated

    C# driver needs to use a different instance to operate. For example, the operation requires a cursor to read the data instances, and create a table space is required database instance.

  • Examples of cluster operation

    SequoiaDB database cluseer operations are divided into two levels:
    1) Replica Group
    2) Data Node

    Note: Replica group contains three types: Coordination replica group, cataloging replica group, the data replica group.

    Replica group instance and instance data node instances can be expressed in two classes.

    Shard Replica group class Replica group instance represents a separate replica group
    Node Data node class Data node instance represents a single data node

    Undoubtedly related to the cluster operation requires the use of replica groups and data node instance.

    Examples Shard for management replica group. Its operations include start, stop replica groups, access to state replica group node name information, the number of messages.

    Examples Node for managing node. Its operations include start, stop specified node for the specified node instance, to obtain a master-slave node instance, access to data node address information.

Thread safety

For each connection, which produces a set of space, a collection of utilities a socket. Therefore, in a multi-threaded system, you must ensure that each thread is not the same tim for the same socket, send or receive data at the same time. Generally it is not recommended to use multiple threads to operate together with its other instance of a connection instance generated. If each thread uses its own connection as well as other examples of instances generated, you can ensure thread safety.

Error Messages

Each interface will throw SequoiaDB.BaseException and System.Exception exception, corresponding to the exception information and client-side local database engine to return exception information, which can be obtained by exception information BaseException the exception class ErrorCode, ErrorType and Message properties get.

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