mardi 23 décembre 2014

Scala Slick and SQLite

I'm trying to create a database using Scala and SQLite. I'm using Slick as the library for the SQLite. I've been googling around for hours and still can't figure out how to get this working. I have eclipse project with Slick installed. I'm trying to instanciate the database with



val db = Database.forUrl("url",driver = "org.SQLite.Driver")


I have no idea what to put in the url. I'm not very sure about the driver part either. Should I use that one or does "scala.slick.driver.SQLiteDriver" work too? Or does it even matter?


I'm really confused about all this.Any help is appreciated


Thanks!


Aucun commentaire:

Enregistrer un commentaire