Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
C
caosdb-pylib
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
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-pylib
Commits
0aa029d0
Commit
0aa029d0
authored
2 years ago
by
Timm Fitschen
Browse files
Options
Downloads
Plain Diff
Merge branch 'f-find-query' into 'dev'
DOC: F find query See merge request
!82
parents
10ed8e16
2bc8b188
No related branches found
No related tags found
2 merge requests
!96
Release 0.11.2
,
!82
DOC: F find query
Pipeline
#34596
passed
2 years ago
Stage: code_style
Stage: linting
Stage: test
Stage: deploy
Changes
3
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
src/doc/high_level_api.rst
+2
-2
2 additions, 2 deletions
src/doc/high_level_api.rst
src/doc/tutorials/complex_data_models.rst
+3
-2
3 additions, 2 deletions
src/doc/tutorials/complex_data_models.rst
src/doc/tutorials/first_steps.rst
+1
-1
1 addition, 1 deletion
src/doc/tutorials/first_steps.rst
with
6 additions
and
5 deletions
src/doc/high_level_api.rst
+
2
−
2
View file @
0aa029d0
...
...
@@ -60,7 +60,7 @@ it using its high level representation:
from caosdb.high_level_api import query
res = query("FIND
Record
Experiment")
res = query("FIND Experiment")
experiment = res[0]
# Use a property:
print(experiment.date)
...
...
@@ -80,7 +80,7 @@ series of commands to achieve the same result:
import caosdb as db
res = db.execute_query("FIND
Record
Experiment")
res = db.execute_query("FIND Experiment")
output = res.get_property("output")
output_file = db.File(id=output.value[0].id).retrieve()
print(output_file.path)
...
...
This diff is collapsed.
Click to expand it.
src/doc/tutorials/complex_data_models.rst
+
3
−
2
View file @
0aa029d0
...
...
@@ -69,8 +69,9 @@ Examples
c.insert()
# Useful for testing: wait until the user presses a key
# Meanwhile have a look at the WebUI: You can e.g. query "FIND Test*" to view
# all the entities created here and see the relations and links between them.
# Meanwhile have a look at the WebUI: You can e.g. query "FIND ENTITY Test*"
# to view all the entities created here and see the relations and links
# between them.
b = input("Press any key to cleanup.")
# cleanup everything after the user presses any button.
c.delete()
This diff is collapsed.
Click to expand it.
src/doc/tutorials/first_steps.rst
+
1
−
1
View file @
0aa029d0
...
...
@@ -25,7 +25,7 @@ However, you can also translate the examples to the data model that you have at
Let's start with a simple query.
>>> response = db.execute_query("FIND
RECORD
Guitar")
>>> response = db.execute_query("FIND Guitar")
Queries work the same way as in the web interface. You simply provide the
query string to the corresponding function (``db.execute_query``). However, the result is not
...
...
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