ModelsCodeGenerator

slick.additions.codegen.ModelsCodeGenerator

Code generator that produces a case class for each table to represent a row in code

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Known subtypes

Members list

Value members

Concrete methods

override def codeString(rules: GenerationRules, slickProfileClass: Class[_ <: JdbcProfile])(implicit executionContext: ExecutionContext): DBIO[String]

Attributes

Definition Classes

Inherited methods

def codeString(rules: GenerationRules, slickProfileClassName: String)(implicit executionContext: ExecutionContext): DBIO[String]

Attributes

Inherited from:
BaseCodeGenerator
def codeStringFormatted(rules: GenerationRules, slickProfileClassName: String, scalafmtConfig: ScalafmtConfig)(implicit executionContext: ExecutionContext): DBIO[String]

Attributes

Inherited from:
BaseCodeGenerator
protected def imports(strings: List[String]): List[Stat]

Attributes

Inherited from:
BaseCodeGenerator
protected def toTermRef(s: String): Ref

Attributes

Inherited from:
BaseCodeGenerator
protected def toTypeRef(s: String): Ref

Attributes

Inherited from:
BaseCodeGenerator
def writeToFileDBIO(baseDir: Path, slickConfig: Config, rules: GenerationRules)(implicit executionContext: ExecutionContext): DBIOAction[Path, NoStream, All]

Attributes

Inherited from:
BaseCodeGenerator
def writeToFileSync(baseDir: Path, slickConfig: Config, rules: GenerationRules, timeout: Duration)(implicit executionContext: ExecutionContext): Path

Attributes

Inherited from:
BaseCodeGenerator