public static CouchApiDbCommand Doc(this CouchApiDb element, string documentId = null)
 {
     var result = new CouchApiDbCommand(element.RequestClient)
         {
             PathElement = element.PathElement + (!string.IsNullOrWhiteSpace(documentId) ? (documentId + "/") : "")
         };
     return result;
 }
 public static CouchApiDbCommand Purge(this CouchApiDb element)
 {
     var result = new CouchApiDbCommand(element.RequestClient)
         {
             PathElement = element.PathElement + "_purge/"
         };
     return result;
 }
 public static CouchApiDbCommand EnsureFullCommit(this CouchApiDb element)
 {
     var result = new CouchApiDbCommand(element.RequestClient)
         {
             PathElement = element.PathElement + "_ensure_full_commit/"
         };
     return result;
 }
 public static CouchApiDbCommand MissingRevs(this CouchApiDb element)
 {
     var result = new CouchApiDbCommand(element.RequestClient)
         {
             PathElement = element.PathElement + "_missing_revs/"
         };
     return result;
 }
 public static CouchApiDbCommand Compact(this CouchApiDb element)
 {
     var result = new CouchApiDbCommand(element.RequestClient)
         {
             PathElement = element.PathElement + "_compact/"
         };
     return result;
 }
 public static CouchApiDbCommand BulkDocs(this CouchApiDb element)
 {
     var result = new CouchApiDbCommand(element.RequestClient)
         {
             PathElement = element.PathElement + "_bulk_docs/"
         };
     return result;
 }
 public static CouchApiDbCommand RevsLimit(this CouchApiDb element)
 {
     var result = new CouchApiDbCommand(element.RequestClient)
         {
             PathElement = element.PathElement + "_revs_limit/"
         };
     return result;
 }
 public static CouchApiDbCommand ViewCleanup(this CouchApiDb element)
 {
     var result = new CouchApiDbCommand(element.RequestClient)
         {
             PathElement = element.PathElement + "_view_cleanup/"
         };
     return result;
 }
 public static CouchApiDbCommand TempView(this CouchApiDb element)
 {
     var result = new CouchApiDbCommand(element.RequestClient)
         {
             PathElement = element.PathElement + "_temp_view/"
         };
     return result;
 }
Beispiel #10
0
 public static CouchApiDbCommand Security(this CouchApiDb element)
 {
     var result = new CouchApiDbCommand(element.RequestClient)
         {
             PathElement = element.PathElement + "_security/"
         };
     return result;
 }