[Swift-commit] r2878 - provenancedb

noreply at svn.ci.uchicago.edu noreply at svn.ci.uchicago.edu
Thu Apr 23 11:14:53 CDT 2009


Author: benc
Date: 2009-04-23 11:14:52 -0500 (Thu, 23 Apr 2009)
New Revision: 2878

Modified:
   provenancedb/prepare-provenance-chart
   provenancedb/prov-to-sql.sh
Log:
import compound procedures into provdb

Modified: provenancedb/prepare-provenance-chart
===================================================================
--- provenancedb/prepare-provenance-chart	2009-04-23 15:47:39 UTC (rev 2877)
+++ provenancedb/prepare-provenance-chart	2009-04-23 16:14:52 UTC (rev 2878)
@@ -27,3 +27,4 @@
 
 info-to-extrainfo > extrainfo.txt
 
+cat $1 | grep ' STARTCOMPOUND ' | sed 's/^.* thread=\([^ ]*\) name=\([^ ]*\).*$/\1 \2/' > compounds.txt

Modified: provenancedb/prov-to-sql.sh
===================================================================
--- provenancedb/prov-to-sql.sh	2009-04-23 15:47:39 UTC (rev 2877)
+++ provenancedb/prov-to-sql.sh	2009-04-23 16:14:52 UTC (rev 2878)
@@ -58,6 +58,13 @@
   echo "INSERT INTO extrainfo (execute2id, extrainfo) VALUES ('$id', '$extrainfo');" >> tmp-import.sql
 done < extrainfo.txt
 
+# TODO this could merge with other naming tables
+while read thread procname ; do
+  compoundid=$WFID$thread
+  echo "INSERT INTO processes (id, type) VALUES ('$compoundid', 'compound');" >> tmp-import.sql
+  echo "INSERT INTO invocation_procedure_names (execute_id, procedure_name) VALUES ('$compoundid', '$procname');" >> tmp-import.sql
+done < compounds.txt
+
 echo Sending SQL to DB
 
 $SQLCMD < tmp-import.sql




More information about the Swift-commit mailing list