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
object DataType

Attributes

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

The user wants o issue a query.

The user wants o issue a query.

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
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 SqlIdentifier(name: String, quoted: Boolean, alias: Option[String]) extends SqlIdentifying

An SQL Identifier (table or colum name

An SQL Identifier (table or colum name

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 SqlIdentifier

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
class ColumnPath[R, T]

Parameters available in sql""-Interpolation.

Parameters available in sql""-Interpolation.

Attributes

Companion
object
Supertypes
class Object
trait Matchable
class Any
Known subtypes
object Empty
class InnerSql
class SqlParameter[T]
Show all

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

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

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