ModelsFileCodeGenerator

slick.additions.codegen.ModelsFileCodeGenerator

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

Inherited methods

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

Attributes

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

Attributes

Inherited from:
FileCodeGenerator
def codeString(tableConfigs: List[TableConfig], extraImports: List[String], slickProfileClass: Class[_ <: JdbcProfile]): String

Attributes

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

Attributes

Inherited from:
FileCodeGenerator
def filePath(base: Path): Path

Attributes

Inherited from:
FileCodeGenerator
protected def fileStatement(tableConfigs: List[TableConfig], allImports: List[Stat]): Pkg

Attributes

Inherited from:
FileCodeGenerator
protected def fileStatements(tableConfigs: List[TableConfig]): List[Stat]

Attributes

Inherited from:
FileCodeGenerator
protected def importStatements(extraImports: List[String], slickProfileClass: Class[_ <: JdbcProfile]): List[Stat]

Attributes

Inherited from:
FileCodeGenerator
protected def imports: List[String]

Attributes

Inherited from:
FileCodeGenerator
protected def objectStatements(tableConfig: TableConfig): List[Stat]

Attributes

Inherited from:
FileCodeGenerator
protected def packageRef: Ref

Attributes

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

Attributes

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

Attributes

Inherited from:
FileCodeGenerator

Inherited and Abstract methods

def filename: String

Attributes

Inherited from:
FileCodeGenerator
def packageName: String

Attributes

Inherited from:
FileCodeGenerator