slick-examples
slick-examples copied to clipboard
A sample project for getting started with Slick
In UserComponent.User the below session argument is not necessary. private def autoInc(implicit session: Session) = name ~ pictureId returning id into { case (_, id) => id }
if you run the MultiDBExample 2 times or more from the same sbt session you get the following output: Version of slick-examples: 79eb15313c380359470f22e9d122a4cd9676d307 Repro steps inside of sbt: > run-main...
When configured for a non-temporary database such as MySQL, the project cannot be run a second time unless the tables are manually dropped. Also, the database must be manually created.
Ideally the project would allow the user to select one of several database drivers in some fashion without altering any code. Perhaps command-line arguments might be used to specify a...
How about an example along these lines? ``` @table("COFFEES") case class Coffee( @column("COF_NAME") name: String, @column("SUP_ID") supID: Int, @column("PRICE") price: Double ) val coffees = Queryable[Coffee] // for inserts use...
How do I use with scala 2.9.x?