Query class
A received query on a queryable key expression.
Wraps a heap-allocated z_owned_query_t. The query holds a cloned
reference to the original query from the callback. Call dispose
when done to release native resources (even if no reply was sent).
Constructors
Properties
- attachmentBytes → Uint8List?
-
The raw attachment bytes, or null if no attachment was present.
final
- handle → int
-
The native pointer handle for this query (used by reply methods).
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
- keyExpr → String
-
The key expression of this query.
final
- parameters → String
-
The query parameters (selector portion after '?'). Empty if none.
final
- payloadBytes → Uint8List?
-
The optional payload attached to this query.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
dispose(
) → void - Releases the native query resources.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
reply(
String keyExpr, String value, {Encoding? encoding, ZBytes? attachment}) → void - Sends a reply to this query with a string value.
-
replyBytes(
String keyExpr, ZBytes payload, {Encoding? encoding, ZBytes? attachment}) → void - Sends a reply to this query with a ZBytes payload.
-
replyErr(
String value, {Encoding? encoding}) → void - Sends an error reply to this query with a string value.
-
replyErrBytes(
ZBytes payload, {Encoding? encoding}) → void - Sends an error reply to this query with a ZBytes payload.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited