Skip to content
Snippets Groups Projects
Unverified Commit f4f1d250 authored by Daniel's avatar Daniel
Browse files

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
...@@ -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`.
...@@ -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),
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment