Skip to content

Instantly share code, notes, and snippets.

@larste
Last active December 23, 2015 19:39
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save larste/6683694 to your computer and use it in GitHub Desktop.
Save larste/6683694 to your computer and use it in GitHub Desktop.
How to add Sqlite Support in Play 2.2.0
db.default.driver=org.sqlite.JDBC
db.default.url="jdbc:sqlite:/absolute/path/to/sqlite/file.sqlite"
name := "app-name"
version := "1.0-SNAPSHOT"
libraryDependencies ++= Seq(
javaJdbc,
javaEbean,
cache,
"org.xerial" % "sqlite-jdbc" % "3.8.0-SNAPSHOT"
)
resolvers += "SQLite-JDBC Repository" at "https://oss.sonatype.org/content/repositories/snapshots"
play.Project.playJavaSettings
Add support for db evolutions:
Download the sqlite-dialect from here: https://github.com/gwenn/sqlite-dialect
Compile it to a jar file.
Add the jar file the app/lib folder.
@larste
Copy link
Author

larste commented Sep 24, 2013

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment