C# 클래스 LoveSeat.CouchClient

Used as the starting point for any communication with CouchDB
상속: LoveSeat.Support.CouchBase
파일 보기 프로젝트 열기: soitgoes/LoveSeat 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
authType AuthenticationType

공개 메소드들

메소드 설명
CouchClient ( ) : System

This is only intended for use if your CouchDb is in Admin Party

CouchClient ( LoveSeat.CouchConfiguration config ) : System

CouchClient constructor

CouchClient ( string baseUri ) : System

The full uri for the couch constructor

CouchClient ( string host, int port, string username, string password, bool isHttps, AuthenticationType aT ) : System

Constructs the CouchClient and gets an authentication cookie (10 min)

CouchClient ( string username, string password ) : System

CouchClient constructor

CreateAdminUser ( string usernameToCreate, string passwordToCreate ) : LoveSeat.CouchResponseObject

Creates an admin user

CreateDatabase ( string databaseName ) : LoveSeat.CouchResponseObject

Creates a database

CreateUser ( string usernameToCreate, string passwordToCreate ) : LoveSeat.CouchResponseObject

Create a user in the _user database

DeleteAdminUser ( string userToDelete ) : void

Deletes admin user (if you have permission)

DeleteDatabase ( string databaseName ) : LoveSeat.CouchResponseObject

Deletes the specified database

DeleteUser ( string userToDelete ) : void

Deletes user (if you have permission)

GetDatabase ( string databaseName ) : CouchDatabase

Gets a Database object

GetUUID ( int count ) : UniqueIdentifiers

Get's UUID from CouchDB. Limit 50 uuid requests.

GetUser ( string userId ) : Document

Get's the user.

HasDatabase ( string databaseName ) : bool

Returns a bool indicating whether or not the database exists.

HasUser ( string userId ) : bool

Returns true/false depending on whether or not the user is contained in the _users database

TriggerReplication ( string source, string target ) : LoveSeat.CouchResponseObject
TriggerReplication ( string source, string target, bool continuous ) : LoveSeat.CouchResponseObject

Triggers one way replication from the source to target. If bidirection is needed call this method twice with the source and target args reversed.

메소드 상세

CouchClient() 공개 메소드

This is only intended for use if your CouchDb is in Admin Party
public CouchClient ( ) : System
리턴 System

CouchClient() 공개 메소드

CouchClient constructor
public CouchClient ( LoveSeat.CouchConfiguration config ) : System
config LoveSeat.CouchConfiguration
리턴 System

CouchClient() 공개 메소드

The full uri for the couch constructor
public CouchClient ( string baseUri ) : System
baseUri string Base Url with authentication to couch. Should NOT include database
리턴 System

CouchClient() 공개 메소드

Constructs the CouchClient and gets an authentication cookie (10 min)
public CouchClient ( string host, int port, string username, string password, bool isHttps, AuthenticationType aT ) : System
host string The hostname of the CouchDB instance
port int The port of the CouchDB instance
username string The username of the CouchDB instance
password string The password of the CouchDB instance
isHttps bool
aT AuthenticationType
리턴 System

CouchClient() 공개 메소드

CouchClient constructor
public CouchClient ( string username, string password ) : System
username string
password string
리턴 System

CreateAdminUser() 공개 메소드

Creates an admin user
public CreateAdminUser ( string usernameToCreate, string passwordToCreate ) : LoveSeat.CouchResponseObject
usernameToCreate string
passwordToCreate string
리턴 LoveSeat.CouchResponseObject

CreateDatabase() 공개 메소드

Creates a database
public CreateDatabase ( string databaseName ) : LoveSeat.CouchResponseObject
databaseName string Name of new database
리턴 LoveSeat.CouchResponseObject

CreateUser() 공개 메소드

Create a user in the _user database
public CreateUser ( string usernameToCreate, string passwordToCreate ) : LoveSeat.CouchResponseObject
usernameToCreate string
passwordToCreate string
리턴 LoveSeat.CouchResponseObject

DeleteAdminUser() 공개 메소드

Deletes admin user (if you have permission)
public DeleteAdminUser ( string userToDelete ) : void
userToDelete string
리턴 void

DeleteDatabase() 공개 메소드

Deletes the specified database
public DeleteDatabase ( string databaseName ) : LoveSeat.CouchResponseObject
databaseName string Database to delete
리턴 LoveSeat.CouchResponseObject

DeleteUser() 공개 메소드

Deletes user (if you have permission)
public DeleteUser ( string userToDelete ) : void
userToDelete string
리턴 void

GetDatabase() 공개 메소드

Gets a Database object
public GetDatabase ( string databaseName ) : CouchDatabase
databaseName string Name of database to fetch
리턴 CouchDatabase

GetUUID() 공개 메소드

Get's UUID from CouchDB. Limit 50 uuid requests.
public GetUUID ( int count ) : UniqueIdentifiers
count int
리턴 UniqueIdentifiers

GetUser() 공개 메소드

Get's the user.
public GetUser ( string userId ) : Document
userId string
리턴 Document

HasDatabase() 공개 메소드

Returns a bool indicating whether or not the database exists.
public HasDatabase ( string databaseName ) : bool
databaseName string
리턴 bool

HasUser() 공개 메소드

Returns true/false depending on whether or not the user is contained in the _users database
public HasUser ( string userId ) : bool
userId string
리턴 bool

TriggerReplication() 공개 메소드

public TriggerReplication ( string source, string target ) : LoveSeat.CouchResponseObject
source string
target string
리턴 LoveSeat.CouchResponseObject

TriggerReplication() 공개 메소드

Triggers one way replication from the source to target. If bidirection is needed call this method twice with the source and target args reversed.
public TriggerReplication ( string source, string target, bool continuous ) : LoveSeat.CouchResponseObject
source string Uri or database name of database to replicate from
target string Uri or database name of database to replicate to
continuous bool Whether or not CouchDB should continue to replicate going forward on it's own
리턴 LoveSeat.CouchResponseObject

프로퍼티 상세

authType 보호되어 있는 프로퍼티

protected AuthenticationType authType
리턴 AuthenticationType