Questions tagged [slick-codegen]
20 questions
0
votes
1 answer
slick auto-generated Models in sourceManaged folder: how to access them in a Controller?
in play 2.5, I am using the slick codegenerator from com.typesafe.slick "com.typesafe.slick" %% "slick-codegen" % "3.1.1" % "compile" and it works fine: the auto-generated Slick data model is generated to the file…

thomas13
- 1
0
votes
1 answer
Slick implicit parameter 'tables' with generated tables
The simple version
What's the preferred way to import and use generated Slick tables?
The detailed version and what I've tried
I used Slick 3.1.1 codegen to generate a Tables.scala from a MySQL (MariaDB) schema.
Tables.scala begins with this:
//…

Douglas Myers-Turnbull
- 159
- 1
- 7
0
votes
1 answer
Generate code using Slick Codegen 3.1.1 for multiple schemas
I have a requirement to generate Slick custom code for the tables present in schema not owned by me but having select privileges on them. The code I am using is :
import scala.util.{Failure, Success}
import scala.concurrent._
import…

Raxbangalore
- 101
- 1
- 3
- 7
0
votes
2 answers
Scala Slick 3.1.0 StackOverflow error after code generation
I've started using the Slick framework and the Code Generator that it's recommended to use.
My problem is that after I generate the code for a table with more than 22 columns (I know about the limits, but the Code Generator let me get over it…

Pedro N
- 1
- 1
0
votes
1 answer
how to disable slick codegen from creating dbModels on each compile?
I tried to comment automatic code gen on each compile in Build.scala as below,but then it my code shows error as it is unable to reference any autogen table models from previous compilations.
slick <<= slickCodeGenTask // register manual sbt…

Pradeep Saini
- 61
- 10