Method | Description | |
---|---|---|
BatchGetDocs ( string server, string db, string content ) : string |
Create a new document. If the document has no ID field, it will be assigned one by the server.
|
|
CountDocuments ( string server, string db ) : int |
Get the document count for the given database.
|
|
CreateDatabase ( string server, string db ) : void |
Create a new database.
|
|
CreateDocument ( string server, string db, string content ) : void |
Create a new document. If the document has no ID field, it will be assigned one by the server.
|
|
DeleteDatabase ( string server, string db ) : void |
Delete a database
|
|
DeleteDocument ( string server, string db, string docid ) : void |
Delete a document.
|
|
ExecTempView ( string server, string db, string map, string reduce, string startkey, string endkey ) : string |
Execute a temporary view and return the results.
|
|
GetAllDocuments ( string server, string db ) : NDB.DocInfo[] |
Get information on all the documents in the given database.
|
|
GetChanges ( string server, string db, bool includeDocs = false, long since ) : |
Get all changes from the database since a given change revision
|
|
GetDatabases ( string server ) : string[] |
Get a list of database on the server.
|
|
GetDocument ( string server, string db, string docid ) : string |
Get a document.
|
|
GetDocument ( string server, string db, string docid, string startkey, string endkey ) : string |
Get a document.
|
|
RemoteDB ( ) : System |
Method | Description | |
---|---|---|
DoRequest ( string url, string method ) : string |
Internal helper to make an HTTP request and return the response. Throws an exception in the event of any kind of failure. Overloaded - use the other version if you need to post data with the request.
|
|
DoRequest ( string url, string method, string postdata, string contenttype ) : string |
Internal helper to make an HTTP request and return the response. Throws an exception in the event of any kind of failure. Overloaded - use the other version if no post data is required.
|
public BatchGetDocs ( string server, string db, string content ) : string | ||
server | string | The server URL |
db | string | The database name |
content | string | The document contents (JSON). |
return | string |
public CountDocuments ( string server, string db ) : int | ||
server | string | The server URL |
db | string | The database name |
return | int |
public CreateDatabase ( string server, string db ) : void | ||
server | string | The server URL |
db | string | The database name |
return | void |
public CreateDocument ( string server, string db, string content ) : void | ||
server | string | The server URL |
db | string | The database name |
content | string | The document contents (JSON). |
return | void |
public DeleteDatabase ( string server, string db ) : void | ||
server | string | The server URL |
db | string | The name of the database to delete |
return | void |
public DeleteDocument ( string server, string db, string docid ) : void | ||
server | string | The server URL |
db | string | The database name |
docid | string | The document ID. |
return | void |
public ExecTempView ( string server, string db, string map, string reduce, string startkey, string endkey ) : string | ||
server | string | The server URL |
db | string | The database name |
map | string | The javascript map function |
reduce | string | The javascript reduce function or /// null if not required |
startkey | string | The startkey or null not to use |
endkey | string | The endkey or null not to use |
return | string |
public GetAllDocuments ( string server, string db ) : NDB.DocInfo[] | ||
server | string | The server URL |
db | string | The database name |
return | NDB.DocInfo[] |
public GetChanges ( string server, string db, bool includeDocs = false, long since ) : |
||
server | string | The server URL |
db | string | The database name |
includeDocs | bool | |
since | long | sequence number for the last checkpoint, defaults to 0 i.e. all changes |
return |
public GetDatabases ( string server ) : string[] | ||
server | string | The server URL |
return | string[] |
public GetDocument ( string server, string db, string docid ) : string | ||
server | string | The server URL |
db | string | The database name |
docid | string | The document ID. |
return | string |
public GetDocument ( string server, string db, string docid, string startkey, string endkey ) : string | ||
server | string | The server URL |
db | string | The database name |
docid | string | The document ID. |
startkey | string | The startkey or null not to use |
endkey | string | The endkey or null not to use |
return | string |