C# Class NDB.NouchDB

Exibir arquivo Open project: Kirosoft/NouchDB Class Usage Examples

Public Methods

Method Description
AllDocs ( ) : string
Changes ( long lastUpdateSequence ) : string
Close ( ) : void
Delete ( LevelDB.Options options ) : void
GetDoc ( string docId ) : string
GetDocInfo ( string docId, string rev_id = "" ) : Node
GetLastSync ( string uri ) : long
Info ( ) : string
NouchDB ( ) : System
NouchDB ( string storeName, string basePath = BASE_PATH ) : System
Open ( string storeName, string basePath = BASE_PATH, string>.Dictionary options = null ) : void
PutDoc ( string docId, string data ) : void

Update or insert a new document into the database

PutDoc ( string docId, string data, string revId ) : void

Update or insert a new document into the database

ReplicateWith ( string server, string database, bool reset = false ) : long
SetLastSync ( string uri, long lastSync ) : void

Method Details

AllDocs() public method

public AllDocs ( ) : string
return string

Changes() public method

public Changes ( long lastUpdateSequence ) : string
lastUpdateSequence long
return string

Close() public method

public Close ( ) : void
return void

Delete() public method

public Delete ( LevelDB.Options options ) : void
options LevelDB.Options
return void

GetDoc() public method

public GetDoc ( string docId ) : string
docId string
return string

GetDocInfo() public method

public GetDocInfo ( string docId, string rev_id = "" ) : Node
docId string
rev_id string
return Node

GetLastSync() public method

public GetLastSync ( string uri ) : long
uri string
return long

Info() public method

public Info ( ) : string
return string

NouchDB() public method

public NouchDB ( ) : System
return System

NouchDB() public method

public NouchDB ( string storeName, string basePath = BASE_PATH ) : System
storeName string
basePath string
return System

Open() public method

public Open ( string storeName, string basePath = BASE_PATH, string>.Dictionary options = null ) : void
storeName string
basePath string
options string>.Dictionary
return void

PutDoc() public method

Update or insert a new document into the database
public PutDoc ( string docId, string data ) : void
docId string ID of the document to store or update
data string string data for the associated document
return void

PutDoc() public method

Update or insert a new document into the database
public PutDoc ( string docId, string data, string revId ) : void
docId string ID of the document to store or update
data string string data for the associated document
revId string specific version add by revId
return void

ReplicateWith() public method

public ReplicateWith ( string server, string database, bool reset = false ) : long
server string
database string
reset bool
return long

SetLastSync() public method

public SetLastSync ( string uri, long lastSync ) : void
uri string
lastSync long
return void