TablesCodeGenerator

slick.additions.codegen.TablesCodeGenerator

Code generator for standard Slick table definitions. The generated code has no dependency on slick-additions.

Tables that have more than 22 fields are mapped by simply nesting tuples so that no single tuple has more than 22 elements.

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
def columnField: ColumnConfig => Stat
def isDefaultSchema(schema: String): Boolean
def mappingType(rowClassType: Name): Apply
def mkMapping(rowClassName: String, mappingName: String, columns: List[ColumnConfig]): Def
def tableStats: TableConfig => List[Stat]

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