Skip to content
Snippets Groups Projects
Commit 1e651982 authored by florian's avatar florian
Browse files

DOC: Add hint on COUNT queries

parent bdcaceb1
No related branches found
No related tags found
1 merge request!7ENH: Implement queries and entity retrieval
Pipeline #12053 failed
...@@ -181,7 +181,7 @@ Add a query sub-request to the given `transaction`. ...@@ -181,7 +181,7 @@ Add a query sub-request to the given `transaction`.
!!! info !!! info
This dows not execute the transaction This does not execute the transaction
""" """
function add_query(transaction::Ref{_Transaction}, query::AbstractString) function add_query(transaction::Ref{_Transaction}, query::AbstractString)
...@@ -366,6 +366,14 @@ end ...@@ -366,6 +366,14 @@ end
Execute the given `query` and return its results. Use the connection Execute the given `query` and return its results. Use the connection
with the given `name`. If none is given, the default connection is with the given `name`. If none is given, the default connection is
used. used.
!!! info
Since only the resulting entities are returned, this only makes
sense for FIND (and, in the future, SELECT) queries. To get the
result of a `COUNT` query, you have to execute the transaction
yourself using `create_transaction`, `add_query`, and `execute`,
and get the result with `get_count_result`.
""" """
function execute_query(query::AbstractString, name::AbstractString = "default") function execute_query(query::AbstractString, name::AbstractString = "default")
...@@ -386,6 +394,14 @@ end ...@@ -386,6 +394,14 @@ end
Execute the given `query` and return its results. Use the given Execute the given `query` and return its results. Use the given
`connection`. `connection`.
!!! info
Since only the resulting entities are returned, this only makes
sense for FIND (and, in the future, SELECT) queries. To get the
result of a `COUNT` query, you have to execute the transaction
yourself using `create_transaction`, `add_query`, and `execute`,
and get the result with `get_count_result`.
""" """
function execute_query( function execute_query(
query::AbstractString, query::AbstractString,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment