[NCBC-164] "View.Exists" Created: 26/Nov/12  Updated: 08/May/13  Resolved: 08/May/13

Status: Closed
Project: Couchbase .NET client library
Component/s: library
Affects Version/s: None
Fix Version/s: 1.2.3

Type: New Feature Priority: Major
Reporter: Kyle Sama Assignee: John Zablocki (Inactive)
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

When performing a query in the vein of:
_couchClient.GetView<object>("DocumentName", "ViewName");
It would be helpful to have a command like View.Exists before fetching the View. At the very least, something similar to the TryGet command, but for getting a view.

Comment by John Zablocki (Inactive) [ 26/Dec/12 ]
under the Couchbase.Management namespace, there is a CouchbaseCluster class with a GetDesignDocument. You'd have to interrogate the JSON to check for a view, but it is possible. I'll look into updating the API to have a view exists method.
Comment by John Zablocki (Inactive) [ 08/May/13 ]
Comment by John Zablocki (Inactive) [ 08/May/13 ]
Wrong close reason.
Generated at Sun Nov 23 01:24:44 CST 2014 using JIRA 5.2.4#845-sha1:c9f4cc41abe72fb236945343a1f485c2c844dac9.