[Swift-commit] r2220 - provenancedb
noreply at svn.ci.uchicago.edu
noreply at svn.ci.uchicago.edu
Fri Sep 5 09:57:13 CDT 2008
Author: benc
Date: 2008-09-05 09:57:10 -0500 (Fri, 05 Sep 2008)
New Revision: 2220
Modified:
provenancedb/prov-to-sql.sh
Log:
workflow_events table population
Modified: provenancedb/prov-to-sql.sh
===================================================================
--- provenancedb/prov-to-sql.sh 2008-09-05 14:54:33 UTC (rev 2219)
+++ provenancedb/prov-to-sql.sh 2008-09-05 14:57:10 UTC (rev 2220)
@@ -1,5 +1,6 @@
#!/bin/bash
+echo Generating SQL
rm -f tmp-import.sql
@@ -29,5 +30,12 @@
echo "INSERT INTO dataset_filenames (dataset_id, filename) VALUES ('$dataset', '$filename');" >> tmp-import.sql
done < $LOGDIR/dataset-filenames.txt
+while read start duration wfid; do
+ echo "INSERT INTO workflow_events (workflow_id,starttime, duration) VALUES ('$wfid', '$start', '$duration');" >> tmp-import.sql
+done < $LOGDIR/workflow.event
+echo Sending SQL to DB
+
$SQLCMD < tmp-import.sql
+echo Finished sending SQL to DB
+
More information about the Swift-commit
mailing list