From 6395b2cab76ec5e230756047a991e7bc9d7caa7d Mon Sep 17 00:00:00 2001 From: roland-sipos Date: Thu, 28 Oct 2021 11:51:34 +0200 Subject: [PATCH] fix table names --- runregistry-rest/queries.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/runregistry-rest/queries.py b/runregistry-rest/queries.py index 13f3d3c..712db69 100644 --- a/runregistry-rest/queries.py +++ b/runregistry-rest/queries.py @@ -1,14 +1,14 @@ # $ curl -u fooUsr:barPass -X GET np04-srv-021:5005/runregistry/getRunMeta/2 -getRunMeta = "select RUN_NUMBER, START_TIME, STOP_TIME, DETECTOR_ID, RUN_TYPE from RUN_REGISTRY where RUN_NUMBER=:run_num" +getRunMeta = "select RUN_NUMBER, START_TIME, STOP_TIME, DETECTOR_ID, RUN_TYPE from RUN_REGISTRY_META where RUN_NUMBER=:run_num" # $ curl -u fooUsr:barPass -X GET -O -J np04-srv-021:5005/runregistry/getRunBlob/2 getRunBlob = "select FILENAME, CONFIGURATION from RUN_REGISTRY_META natural join RUN_REGISTRY_CONFIGS where RUN_NUMBER=:run_num" # $ curl -u fooUsr:barPass -X GET np04-srv-021:5005/runregistry/getRunMetaLast/100 -getRunMetaLast = "select * from (select RUN_NUMBER, START_TIME, STOP_TIME, DETECTOR_ID, RUN_TYPE from RUN_REGISTRY order by RUN_NUMBER desc) where ROWNUM<=:amount" +getRunMetaLast = "select * from (select RUN_NUMBER, START_TIME, STOP_TIME, DETECTOR_ID, RUN_TYPE from RUN_REGISTRY_META order by RUN_NUMBER desc) where ROWNUM<=:amount" # $ curl -u fooUsr:barPass -F "file=@sspconf.tar.gz" -F "run_num=4" -F "det_id=foo" -F "run_type=bar" -X POST http://localhost:5005/runregistry/insertRun/ -insertRunRegistry = "insert into RUN_REGISTRY (RUN_NUMBER, START_TIME, STOP_TIME, DETECTOR_ID, RUN_TYPE, FILENAME, CONFIGURATION, SOFTWARE_VERSION) values (:run_num, CURRENT_TIMESTAMP, NULL, :det_id, :run_type, :filename, :config_blob, :software_version)" +#insertRunRegistry = "insert into RUN_REGISTRY (RUN_NUMBER, START_TIME, STOP_TIME, DETECTOR_ID, RUN_TYPE, FILENAME, CONFIGURATION, SOFTWARE_VERSION) values (:run_num, CURRENT_TIMESTAMP, NULL, :det_id, :run_type, :filename, :config_blob, :software_version)" # $ curl -u fooUsr:barPass -F "file=@sspconf.tar.gz" -F "run_num=4" -F "det_id=foo" -F "run_type=bar" -X POST http://localhost:5005/runregistry/insertRun/ insertRunRegistryMeta = "insert into RUN_REGISTRY_META (RUN_NUMBER, START_TIME, STOP_TIME, DETECTOR_ID, RUN_TYPE, FILENAME, SOFTWARE_VERSION) values (:run_num, CURRENT_TIMESTAMP, NULL, :det_id, :run_type, :filename, :software_version)"