abstract class AbstractSourceCodeGenerator extends AbstractGenerator[String, String, String] with StringGeneratorHelpers
Base implementation for a Source code String generator
- Grouped
- Alphabetic
- By Inheritance
- AbstractSourceCodeGenerator
- StringGeneratorHelpers
- AbstractGenerator
- GeneratorHelpers
- AnyRef
- Any
- by any2stringadd
- by StringFormat
- by Ensuring
- by ArrowAssoc
- Hide All
- Show All
- Public
- Protected
Basic customization overrides
- abstract case class AbstractTableDef(model: model.Table) extends Product with Serializable
Code generator for table related code
Code generator for table related code
- model
corresponding Slick meta model component
- Definition Classes
- AbstractGenerator
- abstract def Table: (model.Table) => Table
Table generator factory.
Table generator factory. Override for customization.
- Definition Classes
- AbstractGenerator
- def code: String
Generates code for the complete model (not wrapped in a package yet)
- def codeForContainer: String
Generates code for the container class (not wrapped in a package yet)
- def codeForDDL: String
Generates code for the DDL statement.
- def codePerTable: Map[String, String]
Generates a map that associates the table name with its generated code (not wrapped in a package yet).
- def entityName: (String) => String
Maps database table name to entity case class name
Maps database table name to entity case class name
- Definition Classes
- AbstractGenerator
- def tableName: (String) => String
Maps database table name to Table class and value name
Maps database table name to Table class and value name
- Definition Classes
- AbstractGenerator
Ungrouped
- abstract class AbstractSourceCodeTableDef extends AbstractTableDef
- abstract type Table <: AbstractTableDef
Table generator virtual class
Table generator virtual class
- Definition Classes
- AbstractGenerator
- implicit class StringExtensions extends AnyRef
Slick code generator string extension methods.
Slick code generator string extension methods. (Warning: Not unicode-safe, uses String#apply)
- Definition Classes
- GeneratorHelpers
- val ddlEnabled: Boolean
Enables DDL Generation.
Enables DDL Generation.
- Definition Classes
- AbstractGenerator
- def docWithCode(doc: String, code: String): String
Assemble doc comment with scala code
Assemble doc comment with scala code
- Definition Classes
- StringGeneratorHelpers → GeneratorHelpers
- def foreignKeysPerTable: Map[String, List[String]]
- def indent(code: String): String
- Definition Classes
- GeneratorHelpers
- final def optionType(t: String): String
Wrap the given type into an Option type
Wrap the given type into an Option type
- Definition Classes
- StringGeneratorHelpers → GeneratorHelpers
- def parseType(tpe: String): String
Generates code for a qualified Scala type
Generates code for a qualified Scala type
- Definition Classes
- StringGeneratorHelpers → GeneratorHelpers
- val scalaKeywords: Seq[String]
Words that are reserved keywords in Scala
Words that are reserved keywords in Scala
- Definition Classes
- GeneratorHelpers
- def shouldQuoteIdentifier(s: String): Boolean
- Definition Classes
- StringGeneratorHelpers
- val slickTableTermMembersNoArgs: Seq[String]
Existing term member names in Table[_] that do not take parameters
Existing term member names in Table[_] that do not take parameters
- Definition Classes
- GeneratorHelpers
- final lazy val tables: Seq[Table]
Table code generators.
Table code generators.
- Definition Classes
- AbstractGenerator
- final lazy val tablesByName: Map[QualifiedName, Table]
Table code generators indexed by db table name.
Table code generators indexed by db table name.
- Definition Classes
- AbstractGenerator
- def termName(name: String): String
Marks a String as a TermName (e.g.
Marks a String as a TermName (e.g. for escaping scala keywords)
- Definition Classes
- StringGeneratorHelpers → GeneratorHelpers
- def typeName(name: String): String
Marks a String as a TypeName (e.g.
Marks a String as a TypeName (e.g. for escaping scala keywords)
- Definition Classes
- StringGeneratorHelpers → GeneratorHelpers