EntityTableModulesCodeGenerator

slick.additions.codegen.EntityTableModulesCodeGenerator

Uses slick-additions EntityTableModule to represent tables. Generates a custom profile object that mixes in AdditionsProfile with an api member that mixes in AdditionsApi.

Models should be generated with KeylessModelsCodeGenerator.

Generated code requires slick-additions.

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any

Members list

Value members

Concrete methods

override def mappingType(rowClassType: Name): Apply

Attributes

Definition Classes
override protected def profileImport(slickProfileClass: Class[_ <: JdbcProfile]): List[Stat]

Attributes

Definition Classes
override def tableStats: TableConfig => List[Stat]

Attributes

Definition Classes

Inherited methods

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

Attributes

Definition Classes
Inherited from:
TablesCodeGenerator
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
def columnField: ColumnConfig => Stat

Attributes

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

Attributes

Inherited from:
BaseCodeGenerator
def isDefaultSchema(schema: String): Boolean

Attributes

Inherited from:
TablesCodeGenerator
def mkMapping(rowClassName: String, mappingName: String, columns: List[ColumnConfig]): Def

Attributes

Inherited from:
TablesCodeGenerator
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