Just wondering, but why doesn’t the couchbase node SDK bucket class expose a function to get the bucket’s name?
By source diving, I can tell that this is stored in an attribute called _name, but of course the naming of that attribute suggests that the SDK wants outsiders to stay out.
A simple function getName() would seem to be really helpful, since it would allow people to pass around buckets without knowing their name, and then get the name to do things like build n1ql queries on the basis of those buckets.
Another odd thing I noticed about the Couchbase Node SDK is the query() method on the bucket. I would have expected to see this on the Cluster object, since of course n1ql queries can run across buckets. When I use this method, is there anything actually bucket-specific to be aware of?