query method

Future<QueryResult> query(
  1. String statement, [
  2. QueryOptions? options
])

Executes a SQL++ query against the cluster, scoped to this scope.

Implementation

Future<QueryResult> query(String statement, [QueryOptions? options]) async {
  options ??= const QueryOptions();
  return _bucket.cluster.query(
    statement,
    options.copyWith(queryContext: '${_bucket.name}.$name'),
  );
}