Scope
class Scope (View source)
Scope is an object for providing access to collections.
Methods
string
name()
Returns the name of the scope.
collection(string $name)
Returns a new Collection object representing the collection specified.
query(string $statement, QueryOptions $options = null)
Executes a N1QL query against the cluster with scopeName set implicitly.
analyticsQuery(string $statement, AnalyticsOptions $options = null)
Executes an analytics query against the cluster with scopeName set implicitly.
Details
__construct(Bucket $bucket, string $name)
No description
string
name()
Returns the name of the scope.
Collection
collection(string $name)
Returns a new Collection object representing the collection specified.
QueryResult
query(string $statement, QueryOptions $options = null)
Executes a N1QL query against the cluster with scopeName set implicitly.
AnalyticsResult
analyticsQuery(string $statement, AnalyticsOptions $options = null)
Executes an analytics query against the cluster with scopeName set implicitly.