[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 |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Description |
|
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. |
| Comments |
| Comment by John Zablocki [ 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 [ 08/May/13 ] |
| Released. |
| Comment by John Zablocki [ 08/May/13 ] |
| Wrong close reason. |