Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
C
caosdb-julialib
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
caosdb
Software
caosdb-julialib
Commits
1e651982
Commit
1e651982
authored
3 years ago
by
florian
Browse files
Options
Downloads
Patches
Plain Diff
DOC: Add hint on COUNT queries
parent
bdcaceb1
No related branches found
No related tags found
1 merge request
!7
ENH: Implement queries and entity retrieval
Pipeline
#12053
failed
3 years ago
Stage: info
Stage: code-style
Stage: setup
Stage: test
Stage: deploy
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/Transaction.jl
+17
-1
17 additions, 1 deletion
src/Transaction.jl
with
17 additions
and
1 deletion
src/Transaction.jl
+
17
−
1
View file @
1e651982
...
@@ -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 do
w
s not execute the transaction
This do
e
s 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
,
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment