query
¤
Classes:
-
QueryBuilderImpl–Implementation of a query operation builder.
QueryBuilderImpl
dataclass
¤
QueryBuilderImpl(
*,
endpoint: str,
ledger: str,
context: dict[str, Any] | None = None,
where: WhereClause | None = None,
group_by: GroupByClause | None = None,
having: HavingClause | None = None,
order_by: OrderByClause | None = None,
opts: ActiveIdentity | None = None,
select_fields: dict[str, Any] | list[str] | None = None,
)
Bases: WithContextMixin['QueryBuilderImpl'], WithWhereMixin['QueryBuilderImpl'], RequestMixin, CommitableMixin['QueryBuilderImpl'], QueryBuilder
Implementation of a query operation builder.
Methods:
-
acommit–Executes the transaction asynchronously.
-
build_request_payload–Build the request payload for the query operation.
-
commit–Executes the transaction synchronously.
-
get_url–Get the endpoint URL for the query operation.
-
with_group_by–Add group by clause to the query.
-
with_having–Add having clause to the query.
-
with_opts–Add query options to the query.
-
with_order_by–Add order by clause to the query.
-
with_select–Add select fields to the query.
acommit
async
¤
acommit() -> FlureeResponse
Executes the transaction asynchronously.
Raises:
-
RequestError–If the HTTP request fails.
-
TypeError–If the type parameter cannot be resolved.
build_request_payload
¤
Build the request payload for the query operation.
commit
¤
commit() -> FlureeResponse
Executes the transaction synchronously.
Raises:
-
RequestError–If the HTTP request fails.
-
TypeError–If the type parameter cannot be resolved.
with_select
¤
with_select(fields: SelectObject | SelectArray) -> Self
Add select fields to the query.