Query<T extends Object?> class
Represents a query over the data at a particular location.
Queries can include constraints to filter the results, order the results, and limit the number of results.
Parameters:
helper: The helper for query operations.- oracledb: The FusabaseOracledb instance.
- path: The path to the collection.
parent: Optional parent object.
Returns: An instance of Query.
Example:
var query = oracledb.collection('users').where('age', isGreaterThan: 18);
- Implementers
Constructors
- Query({required QueryHelper helper, required FusabaseOracledb oracledb, required String path, dynamic parent})
Properties
- fromConverter ↔ dynamic
-
getter/setter pair
- hashCode → int
-
The hash code for this object.
no setterinherited
- oracledb → FusabaseOracledb
-
Gets the FusabaseOracledb instance associated with this query.
no setter
-
parameters
→ Map<
String, dynamic> -
Gets the parameters of the query.
no setter
- path → String
-
Gets the path of the query.
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- toConverter ↔ dynamic
-
getter/setter pair
- type ↔ String
-
getter/setter pair
Methods
-
aggregate(
AggregateField aggregateField1, [AggregateField? aggregateField2, AggregateField? aggregateField3, AggregateField? aggregateField4, AggregateField? aggregateField5, AggregateField? aggregateField6, AggregateField? aggregateField7, AggregateField? aggregateField8, AggregateField? aggregateField9, AggregateField? aggregateField10, AggregateField? aggregateField11, AggregateField? aggregateField12, AggregateField? aggregateField13, AggregateField? aggregateField14, AggregateField? aggregateField15, AggregateField? aggregateField16, AggregateField? aggregateField17, AggregateField? aggregateField18, AggregateField? aggregateField19, AggregateField? aggregateField20, AggregateField? aggregateField21, AggregateField? aggregateField22, AggregateField? aggregateField23, AggregateField? aggregateField24, AggregateField? aggregateField25, AggregateField? aggregateField26, AggregateField? aggregateField27, AggregateField? aggregateField28, AggregateField? aggregateField29, AggregateField? aggregateField30]) → AggregateQuery - Creates an aggregation query with the specified fields.
-
column(
List< String> values) → dynamic - Applies column selection to the query.
-
count(
) → AggregateQuery - Creates a count aggregation query.
-
endAt(
Iterable< Object?> values) → Query<T> - Ends the query results at the provided set of values.
-
endAtDocument(
DocumentSnapshot< Object?> documentSnapshot) → Query<T> - Ends the query results at the document.
-
endBefore(
Iterable< Object?> values) → Query<T> - Ends the query results before the provided set of values.
-
endBeforeDocument(
DocumentSnapshot< Object?> documentSnapshot) → Query<T> - Ends the query results before the document.
-
findNearest(
String field, Map< String, dynamic> query, {String? metric, int? topK, num? threshold}) → Query<T> - Creates a v2 vector similarity query.
-
get(
[GetOptions? options]) → Future< QuerySnapshot< T> > - Fetches the documents matching the query.
-
limit(
int number) → Query< T> - Limits the number of documents returned.
-
limitToLast(
int limit) → Query< T> -
Limits the query to the last
limitdocuments. -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
orderBy(
Object field, {bool descending = false}) → Query< T> - Orders the query results by a field.
-
snapshots(
{bool includeMetadataChanges = false, ListenSource source = ListenSource.defaultSource}) → Stream< QuerySnapshot< T> > - Returns a stream of snapshots for the query.
-
startAfter(
Iterable< Object?> values) → Query<T> - Starts the query results after the provided set of values.
-
startAfterDocument(
DocumentSnapshot< Object?> documentSnapshot) → Query<T> - Starts the query results after the document.
-
startAt(
Iterable< Object?> values) → Query<T> - Starts the query results at the provided set of values.
-
startAtDocument(
DocumentSnapshot< Object?> documentSnapshot) → Query<T> - Starts the query results at the document.
-
toString(
) → String -
A string representation of this object.
inherited
-
where(
Object field, {Object? isEqualTo, Object? isNotEqualTo, Object? isLessThan, Object? isLessThanOrEqualTo, Object? isGreaterThan, Object? isGreaterThanOrEqualTo, Object? arrayContains, Iterable< Object?> ? arrayContainsAny, Iterable<Object?> ? whereIn, Iterable<Object?> ? whereNotIn, bool? isNull}) → Query<T> - Adds a filter constraint to the query.
-
withConverter<
R> ({required FromOracledb< R> fromOracledb, required ToOracledb<R> toOracledb}) → Query<R> - Applies converters to the query results.
-
withVectorSearch(
Map< String, dynamic> vectorSearch) → Query<T> - Returns a cloned query with vector search metadata attached.
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited