Config

scalasql.core.Config
See theConfig companion object
trait Config

Things you to do to configure ScalaSql

Attributes

Companion
object
Graph
Supertypes
class Object
trait Matchable
class Any

Members list

Value members

Concrete methods

def columnNameMapper(v: String): String

Translates column names from Scala case class field names to SQL names.

Translates column names from Scala case class field names to SQL names.

Attributes

def defaultFetchSize: Int

Configures the underlying JDBC connection's setFetchSize. Can be overriden on a per-query basis by passing fetchSize = n to db.run

Configures the underlying JDBC connection's setFetchSize. Can be overriden on a per-query basis by passing fetchSize = n to db.run

Attributes

Configures the underlying JDBC connection's setQueryTimeout. Can be overriden on a per-query basis by passing queryTimeoutSeconds = n to db.run

Configures the underlying JDBC connection's setQueryTimeout. Can be overriden on a per-query basis by passing queryTimeoutSeconds = n to db.run

Attributes

def logSql(sql: String, file: String, line: Int): Unit

Override this to log the executed SQL queries

Override this to log the executed SQL queries

Attributes

def nameMapper(v: String): String

Translates table and column names from Scala object names to SQL names.

Translates table and column names from Scala object names to SQL names.

Use tableNameMapper and columnNameMapper if you want different translations for table and column names

Attributes

def renderColumnLabel(tokens: Seq[String]): String

Render a sequence of tokens to a column label; used primarily for making the generated queries more easily human readable.

Render a sequence of tokens to a column label; used primarily for making the generated queries more easily human readable.

Attributes

def tableNameMapper(v: String): String

Translates table names from Scala object names to SQL names.

Translates table names from Scala object names to SQL names.

Attributes