scalikejdbc

package scalikejdbc

Type members

Inherited classlikes

case class BasicResultNameSQLSyntaxProvider[S <: SQLSyntaxSupport[A], A](support: S, tableAliasName: String)

Basic Query SQLSyntax Provider for result.nameProviders.

Basic Query SQLSyntax Provider for result.nameProviders.

Inherited from
SQLSyntaxSupportFeature
case class BatchParamsBuilder(parameters: Seq[Seq[(SQLSyntax, ParameterBinder)]])
Inherited from
QueryDSLFeature
case class ColumnSQLSyntaxProvider[S <: SQLSyntaxSupport[A], A](support: S)

SQLSyntax provider for column names.

SQLSyntax provider for column names.

Inherited from
SQLSyntaxSupportFeature
Inherited from
QueryDSLFeature
case class DeleteSQLBuilder(sql: SQLSyntax)

SQLBuilder for delete queries.

SQLBuilder for delete queries.

Inherited from
QueryDSLFeature

Except query builder

Except query builder

Inherited from
QueryDSLFeature

for update query builder

for update query builder

Inherited from
QueryDSLFeature
Inherited from
QueryDSLFeature
case class InsertSQLBuilder(sql: SQLSyntax)

SQLBuilder for insert queries.

SQLBuilder for insert queries.

Inherited from
QueryDSLFeature

Intersect query builder

Intersect query builder

Inherited from
QueryDSLFeature
Inherited from
QueryDSLFeature
case class PartialResultSQLSyntaxProvider[S <: SQLSyntaxSupport[A], A](support: S, aliasName: String, syntax: SQLSyntax)
case class PartialSubQueryResultNameSQLSyntaxProvider[S <: SQLSyntaxSupport[A], A](aliasName: String, delimiterForResultName: String, underlying: BasicResultNameSQLSyntaxProvider[S, A])
case class PartialSubQueryResultSQLSyntaxProvider[S <: SQLSyntaxSupport[A], A](aliasName: String, delimiterForResultName: String, underlying: BasicResultNameSQLSyntaxProvider[S, A])
case class PartialSubQuerySQLSyntaxProvider[S <: SQLSyntaxSupport[A], A](aliasName: String, delimiterForResultName: String, underlying: BasicResultNameSQLSyntaxProvider[S, A])
object QueryDSL

Prefix object to avoid name confliction.

Prefix object to avoid name confliction.

 withSQL { QueryDSL.select.from(User as u).where.eq(u.id, 123) }
Inherited from
QueryDSLFeature
case class QuerySQLSyntaxProvider[S <: SQLSyntaxSupport[A], A](support: S, tableAliasName: String)

SQLSyntax provider for query parts.

SQLSyntax provider for query parts.

Inherited from
SQLSyntaxSupportFeature

SQLSyntax provider for result.nameProviders.

SQLSyntax provider for result.nameProviders.

Inherited from
SQLSyntaxSupportFeature
case class ResultSQLSyntaxProvider[S <: SQLSyntaxSupport[A], A](support: S, tableAliasName: String)

SQLSyntax provider for result parts.

SQLSyntax provider for result parts.

Inherited from
SQLSyntaxSupportFeature
trait SQLBuilder[A]

SQLBuilder

SQLBuilder

Inherited from
QueryDSLFeature

SQLSyntax Provider

SQLSyntax Provider

Inherited from
SQLSyntaxSupportFeature

SQLSyntaxSupport trait. Companion object needs this trait as follows.

SQLSyntaxSupport trait. Companion object needs this trait as follows.

 case class Member(id: Long, name: Option[String])
 object Member extends SQLSyntaxSupport[Member]
Inherited from
SQLSyntaxSupportFeature
case class SelectSQLBuilder[A](sql: SQLSyntax, lazyColumns: Boolean, resultAllProviders: List[ResultAllProvider], ignoreOnClause: Boolean)

SQLBuilder for select queries.

SQLBuilder for select queries.

Inherited from
QueryDSLFeature
object SubQuery
case class SubQueryResultNameSQLSyntaxProvider(aliasName: String, delimiterForResultName: String, resultNames: Seq[BasicResultNameSQLSyntaxProvider[_, _]])
case class SubQueryResultSQLSyntaxProvider(aliasName: String, delimiterForResultName: String, resultNames: Seq[BasicResultNameSQLSyntaxProvider[_, _]])

Sub query builder

Sub query builder

Inherited from
QueryDSLFeature
case class SubQuerySQLSyntaxProvider(aliasName: String, delimiterForResultName: String, resultNames: Seq[BasicResultNameSQLSyntaxProvider[_, _]])

Table definition (which has alias name) part SQLSyntax

Table definition (which has alias name) part SQLSyntax

Inherited from
SQLSyntaxSupportFeature

Table definition part SQLSyntax

Table definition part SQLSyntax

Inherited from
SQLSyntaxSupportFeature

Union query builder

Union query builder

Inherited from
QueryDSLFeature

Represents UpdateOperation (used as SQLBuilder[UpdateOperation]).

Represents UpdateOperation (used as SQLBuilder[UpdateOperation]).

Inherited from
QueryDSLFeature
case class UpdateSQLBuilder(sql: SQLSyntax)

SQLBuilder for update queries.

SQLBuilder for update queries.

Inherited from
QueryDSLFeature
trait WhereSQLBuilder[A]
Inherited from
QueryDSLFeature
object applyExecute

withSQL and execute.apply()

withSQL and execute.apply()

Inherited from
QueryDSLFeature
object applyUpdate

withSQL and update.apply()

withSQL and update.apply()

Inherited from
QueryDSLFeature

withSQL and updateAndReturnGeneratedKey.apply()

withSQL and updateAndReturnGeneratedKey.apply()

Inherited from
QueryDSLFeature
object withSQL

withSQL clause which returns SQL[A, NoExtractor] from SQLBuilder.

withSQL clause which returns SQL[A, NoExtractor] from SQLBuilder.

Inherited from
QueryDSLFeature

Types

type Closable = { def close(): Unit; }

Inherited types

type AsteriskProvider = AsteriskProvider
Inherited from
SQLInterpolationCoreTypeAlias
Inherited from
SQLSyntaxSupportFeature
type ResultAllProvider = ResultAllProvider
Inherited from
SQLInterpolationCoreTypeAlias
Inherited from
SQLSyntaxSupportFeature
type SQLSyntax = SQLSyntax
Inherited from
SQLInterpolationCoreTypeAlias
Inherited from
SQLSyntaxSupportFeature
Inherited from
SQLSyntaxSupportFeature
Inherited from
SQLSyntaxSupportFeature

Value members

Concrete methods

def opt[A](v: Any): Option[A]

Option value converter.

Option value converter.

Type Params
A

raw type

Value Params
v

nullable raw value

Returns

optional value

def using[R <: Closable, A](resource: R)(f: R => A): A

Inherited fields

val SQLSyntax: SQLSyntax
Inherited from
SQLInterpolationCoreTypeAlias
val delete: delete
Inherited from
QueryDSLFeature
val deleteFrom: deleteFrom
Inherited from
QueryDSLFeature
val insert: insert
Inherited from
QueryDSLFeature
val insertInto: insertInto
Inherited from
QueryDSLFeature
val select: select
Inherited from
QueryDSLFeature
val selectFrom: selectFrom
Inherited from
QueryDSLFeature
val sqls: SQLSyntax
Inherited from
SQLInterpolationCoreTypeAlias
val update: update
Inherited from
QueryDSLFeature

Implicits

Inherited implicits

implicit def convertBigDecimal(bd: BigDecimal): ScalaBigDecimalConverter
Inherited from
ScalaBigDecimalConverterImplicits
@inline
implicit def scalikejdbcSQLInterpolationImplicitDef(s: StringContext): SQLInterpolationString

Enables sql"", sqls"" interpolation.

Enables sql"", sqls"" interpolation.

 sql"select * from members"
 val whereClause = sqls"where id = ${id}"
 sql"select * from members ${whereClause}"
Inherited from
Implicits
@inline
implicit def scalikejdbcSQLSyntaxToStringImplicitDef(syntax: SQLSyntax): String

Returns String value when String type is expected for scalikejdbc.WrappedResultSet.

Returns String value when String type is expected for scalikejdbc.WrappedResultSet.

 val c = Company.syntax("c").resultName
 rs.string(c.name)
Inherited from
Implicits
implicit def toJavaUtilDateConverter(value: Date): JavaUtilDateConverter
Inherited from
JavaUtilDateConverterImplicits