How to Start SequoiaDB

Basic Operation

Data Model

Database Management








Release Note


  • Content
  • Comments
  • History



SequoiaDB PHP driver provides a PHP interface to database operations, and cluster operations. Database operations, including connectivity, users create a database to delete, add or delete data to the inverstigation, remove the index is created, the snapshot acquisition and replacement, as well as the creation of collections and 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 of films.For more details, please refer to the online PHP API

There are two types of driving PHP instance. A database coperation, another operation for the cluster.

  • Examples of database operations

    SequoiaDB stored in the database is divided into three levels:

    1) Database

    2) collection of space

    3) collection

    There fore, in the operation of the database, the available three classes to represent each connection, a collection of space, collection instance, another instance of a class represents a cursor:

    SequoiaDB Database class
    SequoiaCS collection space class
    SequoiaCollection collections
    SequoiaCursor cursor calss

    PHP 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 cluster operations are divided into two levels: 1) replica group 2) data nodes


    Replica group package of 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.

    SequoiaGroup Replica group class Replica group instance represents a separate replica group
    SequoiaNode Data node class data node instance represents a single data node

    And requires the use of cluster-related operations and data replica group node instance.

    Ecamples SequoiaGroup for management replica group. Its operations include start, stop replica groups, access to state replica group node name information, the number of messages. Examples SequoiaNode for managing node. Its operations include start, stop spectfied node for the specified node instance, to obtain a master-slave node instance, access to data node address information.

Error Messages

  • A function call is successful return true (or integer 1), otherwise the return value is false (or integer 0).
  • If the user needs to know the details of the error message, you can call getError() to get the error message, if there is no error, then output "No error message"
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.

Tower R, No.8 North Star East Road, Chaoyang District, Beijing,China
Tower A, No.22 Qinglan Street, Panyu District, Guangzhou,China
Tsing Hua Tech Park, Nanshan District, Shenzhen,China