Différences

Ci-dessous, les différences entre deux révisions de la page.

Lien vers cette vue comparative

Les deux révisions précédentes Révision précédente
Prochaine révision
Révision précédente
research:satminer:satql [2014/05/12 12:11]
ecoquery
research:satminer:satql [2014/05/12 15:59] (Version actuelle)
ecoquery [Running the first example]
Ligne 19: Ligne 19:
 In order to execute a SATQL query, one needs to issue the following command in a cmd/shell window: In order to execute a SATQL query, one needs to issue the following command in a cmd/shell window:
 <code> <code>
-java -cp /path/to/satminer.jar:path/to/mydbdriver.jar dag.satmining.run.Main -satql -driver my.db.jdbc.Driver -jdbc "jdbc:mydb:mydburl?param1=val1" ...+java -cp /path/to/satminer.jar:path/to/mydbdriver.jar dag.satmining.run.Main -satql -driver my.db.jdbc.Driver -jdbc "jdbc:mydb:mydburl?param1=val1" -i queryfile.satql 
 +</code> 
 + 
 +==== Running the first example ==== 
 + First one needs a databaseThe following script will download an [[http://h2database.com|h2 database]] engine, some data and create the corresponding database: 
 +<code> 
 +curl --url http://repo2.maven.org/maven2/com/h2database/h2/1.4.178/h2-1.4.178.jar > h2.jar 
 +curl --url somedata.sql > somedata.sql 
 +java -cp h2.jar org.h2.tools.RunScript -url jdbc:h2:example -script somedata.sql
 </code> </code>