Skip to content
mrumkovskis edited this page Feb 14, 2012 · 10 revisions

Compiling and installing

SBT scala 2.9.1 dependency: "org.tresql" %% "tresql" % "1.0"

Maven dependency: <dependency> <groupId>org.tresql</groupId> <artifactId>tresql_2.9.1</artifactId> <version>1.0</version> </dependency>

Compiling (to be done...) Notes:

  • For get and post examples, browse to http://localhost:8080/get and http://localhost:8080/post.
  • Named query parameters are not supported by examples, but are supported by query server API.
  • For more info on gets and posts, see scaladoc for QueryServer. To create scaladoc, execute sbt doc.
  • To create core jar and service war, execute sbt package. To just compile, use sbt compile
  • Compiled and generated files (jars, wars, classes, docs) are found in core/target and service/target.

TreSQL can also be configured to run on Tomcat or other appserver. Just compile TreSQL using sbt package and copy to create web application on Tomcat.
Database connection can be specified using standard JNDI resource locator. The default resource name should be jdbc/uniso/query. In this case, database schema "public" is assumed. Databse connection can also be configured using JAVA_OPTS variable as described above.

Clone this wiki locally