usql

package usql

Members list

Packages

package usql.dao
package usql.profiles

Type members

Classlikes

case class AppliedSql[T](base: SqlBase, parameter: T, rowEncoder: RowEncoder[T]) extends SqlBase

With supplied arguments

With supplied arguments

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
trait SqlBase
class Object
trait Matchable
class Any
Show all
case class Batch[T](sql: SqlBase, values: IterableOnce[T], filler: RowEncoder[T])

Encapsulates a batch (insert)

Encapsulates a batch (insert)

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all

Provider for JDBC Connections.

Provider for JDBC Connections.

Attributes

Companion
object
Supertypes
class Object
trait Matchable
class Any

Attributes

Companion
trait
Supertypes
class Object
trait Matchable
class Any
Self type
trait DataType[T]

Type class describing a type to use.

Type class describing a type to use.

Attributes

Companion
object
Supertypes
class Object
trait Matchable
class Any
Known subtypes
class OptionalDataType[T]
object DataType

Attributes

Companion
trait
Supertypes
class Object
trait Matchable
class Any
Self type
DataType.type
object Optionalize

Attributes

Supertypes
class Object
trait Matchable
class Any
Self type
trait Query[T]

An SQL Query

An SQL Query

Attributes

Companion
object
Supertypes
class Object
trait Matchable
class Any
Known subtypes
object Query

Attributes

Companion
trait
Supertypes
class Object
trait Matchable
class Any
Self type
Query.type
case class RawSql(sql: String) extends SqlBase

Raw SQL Query string.

Raw SQL Query string.

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
trait SqlBase
class Object
trait Matchable
class Any
Show all
trait RowDecoder[T]

Decoder for singles rows in a ResultSet

Decoder for singles rows in a ResultSet

Attributes

Companion
object
Supertypes
class Object
trait Matchable
class Any
object RowDecoder

Attributes

Companion
trait
Supertypes
class Object
trait Matchable
class Any
Self type
RowDecoder.type
trait RowEncoder[T]

Responsible for filling arguments into prepared statements for batch operations.

Responsible for filling arguments into prepared statements for batch operations.

Attributes

Companion
object
Supertypes
class Object
trait Matchable
class Any
object RowEncoder

Attributes

Companion
trait
Supertypes
class Object
trait Matchable
class Any
Self type
RowEncoder.type
case class Sql(parts: Seq[(String, SqlInterpolationParameter)]) extends SqlBase

SQL with already embedded parameters.

SQL with already embedded parameters.

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
trait SqlBase
class Object
trait Matchable
class Any
Show all
trait SqlBase

Something which can create prepared statements.

Something which can create prepared statements.

Attributes

Supertypes
class Object
trait Matchable
class Any
Known subtypes
class AppliedSql[T]
class RawSql
class Sql
case class SqlColumnId(name: String, quoted: Boolean, alias: Option[String]) extends SqlColumnIdentifying

Identifies an Sql Column

Identifies an Sql Column

Value parameters

name

raw name

quoted

if true, the identifier will be quoted.

Attributes

Companion
object
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
object SqlColumnId

Attributes

Companion
class
Supertypes
trait Product
trait Mirror
class Object
trait Matchable
class Any
Self type

Something which can produce an identifier.

Something which can produce an identifier.

Attributes

Supertypes
class Object
trait Matchable
class Any
Known subtypes
trait ColumnPath[R, T]
trait TupleColumnPath[R, T]
class Empty[R]
class Rec[R, H, T]
class SqlColumnId

Parameters available in sql""-Interpolation.

Parameters available in sql""-Interpolation.

Attributes

Companion
object
Supertypes
class Object
trait Matchable
class Any
Known subtypes

Attributes

Companion
trait
Supertypes
class Object
trait Matchable
class Any
Self type
case class SqlParameters[T](values: Seq[T])

Marker for a sequence of elements like in SQL IN Clause, will be encoded as ?,...,? and filled with values

Marker for a sequence of elements like in SQL IN Clause, will be encoded as ?,...,? and filled with values

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
case class SqlRawPart(s: String)

Something which can be added to sql""-interpolation without further checking.

Something which can be added to sql""-interpolation without further checking.

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
case class SqlTableId(name: String, quoted: Boolean)

Identifies an Sql Table

Identifies an Sql Table

Value parameters

name

raw name

quoted

if true, the identifier will be quoted.

Attributes

Companion
object
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
object SqlTableId

Attributes

Companion
class
Supertypes
trait Product
trait Mirror
class Object
trait Matchable
class Any
Self type
SqlTableId.type

Hook for changing the preparation of SQL.

Hook for changing the preparation of SQL.

Attributes

Companion
object
Supertypes
class Object
trait Matchable
class Any
Known subtypes
object default

Attributes

Companion
trait
Supertypes
class Object
trait Matchable
class Any
Self type
case class Update(sql: SqlBase)

Encapsulates an update statement

Encapsulates an update statement

Attributes

Companion
object
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
object Update

Attributes

Companion
class
Supertypes
trait Product
trait Mirror
class Object
trait Matchable
class Any
Self type
Update.type

Types

type Optionalize[T] = T match { case Option[x] => T case Any => Option[T] }

Returns the optional value, if not yet optional.

Returns the optional value, if not yet optional.

Attributes

type UnOption[T] = T match { case Option[x] => x case Any => T }

Returns underlying type of Option if T is an Option

Returns underlying type of Option if T is an Option

Attributes

Value members

Concrete methods

def transaction[T](using cp: ConnectionProvider)(f: ConnectionProvider ?=> T): T

Helper for building transactions.

Helper for building transactions.

Attributes

Extensions

Extensions

extension (sc: StringContext)
def sql(parameters: SqlInterpolationParameter*): Sql