C# 클래스 Scalien.Database

Database is a convenience class for encapsulating database related operations.

ScalienDB uses databases and tables to manage key value namespaces.

파일 보기 프로젝트 열기: scalien/scaliendb 1 사용 예제들

Private Properties

프로퍼티 타입 설명
Database System

공개 메소드들

메소드 설명
CreateTable ( string name ) : Table

Create a table in this database, with the first shard placed in the first available quorum.

CreateTable ( string name, Quorum quorum ) : Table

Create a table in this database.

DeleteDatabase ( ) : void

Delete the database.

Do not use the database object after calling DeleteDatabase().

GetTable ( string name ) : Table

Retrieve a Scalien.Table in this database by name.

GetTables ( ) : List

Retrieve the tables in the database as a list of Scalien.Table objects.

RenameDatabase ( string newName ) : void

Rename the database.

비공개 메소드들

메소드 설명
Database ( Scalien.Client client, ulong databaseID, string name ) : System

메소드 상세

CreateTable() 공개 메소드

Create a table in this database, with the first shard placed in the first available quorum.
public CreateTable ( string name ) : Table
name string The name of the table.
리턴 Table

CreateTable() 공개 메소드

Create a table in this database.
public CreateTable ( string name, Quorum quorum ) : Table
name string The name of the table.
quorum Quorum The first shard of the table is placed inside the .
리턴 Table

DeleteDatabase() 공개 메소드

Delete the database.
Do not use the database object after calling DeleteDatabase().
public DeleteDatabase ( ) : void
리턴 void

GetTable() 공개 메소드

Retrieve a Scalien.Table in this database by name.
public GetTable ( string name ) : Table
name string The name of the table.
리턴 Table

GetTables() 공개 메소드

Retrieve the tables in the database as a list of Scalien.Table objects.
public GetTables ( ) : List
리턴 List

RenameDatabase() 공개 메소드

Rename the database.
public RenameDatabase ( string newName ) : void
newName string The new database name.
리턴 void