GeneratorHelpers

slick.codegen.GeneratorHelpers
trait GeneratorHelpers[Code, TermName, TypeName]

Helper methods for code generation

Attributes

Source:
AbstractGenerator.scala
Graph
Supertypes
class Object
trait Matchable
class Any
Known subtypes

Members list

Concise view

Type members

Classlikes

implicit class StringExtensions(val str: String)

Slick code generator string extension methods. (Warning: Not unicode-safe, uses String#apply)

Slick code generator string extension methods. (Warning: Not unicode-safe, uses String#apply)

Attributes

Source:
AbstractGenerator.scala
Graph
Supertypes
class Object
trait Matchable
class Any

Value members

Abstract methods

def docWithCode(comment: String, code: Code): Code

Assemble doc comment with scala code

Assemble doc comment with scala code

Attributes

Source:
AbstractGenerator.scala
def optionType(tpe: Code): Code

Wrap the given type into an Option type

Wrap the given type into an Option type

Attributes

Source:
AbstractGenerator.scala
def parseType(tpe: String): Code

Generates code for a qualified Scala type

Generates code for a qualified Scala type

Attributes

Source:
AbstractGenerator.scala
protected def termName(name: String): TermName

Marks a String as a TermName (e.g. for escaping scala keywords)

Marks a String as a TermName (e.g. for escaping scala keywords)

Attributes

Source:
AbstractGenerator.scala
protected def typeName(name: String): TypeName

Marks a String as a TypeName (e.g. for escaping scala keywords)

Marks a String as a TypeName (e.g. for escaping scala keywords)

Attributes

Source:
AbstractGenerator.scala

Concrete methods

def indent(code: String): String

Attributes

Source:
AbstractGenerator.scala

Concrete fields

val scalaKeywords: Seq[String]

Words that are reserved keywords in Scala

Words that are reserved keywords in Scala

Attributes

Source:
AbstractGenerator.scala

Existing term member names in Table[_] that do not take parameters

Existing term member names in Table[_] that do not take parameters

Attributes

Source:
AbstractGenerator.scala

Implicits

Implicits

final implicit def StringExtensions(str: String): StringExtensions

Slick code generator string extension methods. (Warning: Not unicode-safe, uses String#apply)

Slick code generator string extension methods. (Warning: Not unicode-safe, uses String#apply)

Attributes

Source:
AbstractGenerator.scala