Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
C
caosdb-mysqlbackend
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-mysqlbackend
Commits
f4f1d250
Unverified
Commit
f4f1d250
authored
4 years ago
by
Daniel
Browse files
Options
Downloads
Patches
Plain Diff
DOC: Docker info in README_SETUP.md, fixed procedure documentation.
parent
5068d086
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
README_SETUP.md
+6
-0
6 additions, 0 deletions
README_SETUP.md
procedures/query/applyBackReference.sql
+2
-3
2 additions, 3 deletions
procedures/query/applyBackReference.sql
with
8 additions
and
3 deletions
README_SETUP.md
+
6
−
0
View file @
f4f1d250
...
@@ -73,5 +73,11 @@ with the then current version of the stored entities.
...
@@ -73,5 +73,11 @@ with the then current version of the stored entities.
## Unit tests
## Unit tests
*
We use
[
MyTAP-1.0
](
https://hepabolu.github.io/mytap/
)
for unit tests.
*
We use
[
MyTAP-1.0
](
https://hepabolu.github.io/mytap/
)
for unit tests.
*
Requirements:
*
mysqladmin
*
mysqldump
*
mysql client program
*
Tests are in
`tests/test_*.sql`
.
*
Tests are in
`tests/test_*.sql`
.
*
Run
`make test`
.
*
Run
`make test`
.
*
Alternatively, to run the tests in a containerized MariaDB instance, run
`make test-docker`
,
followed by
`make test-docker-stop`
.
This diff is collapsed.
Click to expand it.
procedures/query/applyBackReference.sql
+
2
−
3
View file @
f4f1d250
...
@@ -30,7 +30,7 @@ DELIMITER //
...
@@ -30,7 +30,7 @@ DELIMITER //
/**
/**
* Process a set of entities, keeping those which are referenced in a specific way.
* Process a set of entities, keeping those which are referenced in a specific way.
*
*
* This procedure filters a source table and writes the result
is written
into a target table. If
* This procedure filters a source table and writes the result into a target table. If
* the target table is not given, all non-matching entries are deleted from the source table
* the target table is not given, all non-matching entries are deleted from the source table
* instead.
* instead.
*
*
...
@@ -58,8 +58,7 @@ DELIMITER //
...
@@ -58,8 +58,7 @@ DELIMITER //
* versioned : boolean
* versioned : boolean
* If True, if a reference is versioned (references to specific versions of entities), the target
* If True, if a reference is versioned (references to specific versions of entities), the target
* candidate's version must match. Therefore, the sourceSet and targetSet must have a `_iversion`
* candidate's version must match. Therefore, the sourceSet and targetSet must have a `_iversion`
* column as well (unless sourceSet is the `entities` table). If `sourceSet` is the `entities`
* column as well (unless sourceSet is the `entities` table).
* table, unversioned references will result in all versions of a referenced candidate being returned.
*
*
*/
*/
CREATE
PROCEDURE
db_2_0
.
applyBackReference
(
in
sourceSet
VARCHAR
(
255
),
targetSet
VARCHAR
(
255
),
CREATE
PROCEDURE
db_2_0
.
applyBackReference
(
in
sourceSet
VARCHAR
(
255
),
targetSet
VARCHAR
(
255
),
...
...
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