io.github.liewhite.sqlx

Members list

Concise view

Type members

Classlikes

class AfterLimit[T](val AfterOrderBy: AfterOrderBy[_], val limit: Int)

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
class AfterOrderBy[T](val afterWhere: AfterWhere[_], val orderBy: Field[T])

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
class AfterSelect[T <: Tuple](val afterWhere: AfterWhere[_], val fields: T)

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
class AfterWhere[Q <: Query](val query: Q, val condition: Condition)

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
case class ColumnName(name: String) extends StaticAnnotation

Attributes

Graph
Supertypes
trait Serializable
trait Product
trait Equals
trait StaticAnnotation
class Annotation
class Object
trait Matchable
class Any
class Condition

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
case class DBConfig(`type`: String, host: String, username: String, db: String, port: Option[Int], password: Option[String], maxConnection: Int, minIdle: Int, idleMills: Int)

Attributes

Graph
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
class DBContext(val ds: DBDataSource)

Attributes

Companion:
object
Graph
Supertypes
class Object
trait Matchable
class Any
object DBContext

Attributes

Companion:
class
Graph
Supertypes
class Object
trait Matchable
class Any
Self type
class DBDataSource(val config: DBConfig)

Attributes

Companion:
object
Graph
Supertypes
class Object
trait Matchable
class Any

Attributes

Companion:
class
Graph
Supertypes
class Object
trait Matchable
class Any
Self type
object DSLMacros

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Self type
class DriverNotSupportError(driver: String) extends Exception

Attributes

Graph
Supertypes
class Exception
class Throwable
trait Serializable
class Object
trait Matchable
class Any
case class Field[T](index: Int, modelName: String, fieldName: String, primaryKey: Boolean, colName: String, unique: Boolean, default: Option[Any], length: Option[Int], precision: Option[Precision], t: TField[T])

Attributes

Graph
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
trait FromRecord[T]

Attributes

Companion:
object
Graph
Supertypes
class Object
trait Matchable
class Any
object FromRecord

Attributes

Companion:
trait
Graph
Supertypes
class Object
trait Matchable
class Any
Self type
case class Idx(name: String, cols: Vector[String], unique: Boolean)

Attributes

Graph
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
case class Index(name: String, unique: Boolean, priority: Int) extends StaticAnnotation

Attributes

Graph
Supertypes
trait Serializable
trait Product
trait Equals
trait StaticAnnotation
class Annotation
class Object
trait Matchable
class Any
case class JoinItem(table: Table[_], joinType: JoinType)

Attributes

Graph
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any

Attributes

Graph
Supertypes
trait Enum
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
case class Length(l: Int) extends StaticAnnotation

Attributes

Graph
Supertypes
trait Serializable
trait Product
trait Equals
trait StaticAnnotation
class Annotation
class Object
trait Matchable
class Any
object Migration

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Self type
case class Precision(precision: Int, scale: Int) extends StaticAnnotation

Attributes

Graph
Supertypes
trait Serializable
trait Product
trait Equals
trait StaticAnnotation
class Annotation
class Object
trait Matchable
class Any
case class Primary() extends StaticAnnotation

Attributes

Graph
Supertypes
trait Serializable
trait Product
trait Equals
trait StaticAnnotation
class Annotation
class Object
trait Matchable
class Any
class Query(val tables: Map[String, Table[_]], val joins: Vector[JoinItem]) extends Selectable

Attributes

Companion:
object
Graph
Supertypes
trait Selectable
class Object
trait Matchable
class Any
object Query

Attributes

Companion:
class
Graph
Supertypes
class Object
trait Matchable
class Any
Self type
Query.type
case class SplitTable(splitTo: Int) extends StaticAnnotation

Attributes

Graph
Supertypes
trait Serializable
trait Product
trait Equals
trait StaticAnnotation
class Annotation
class Object
trait Matchable
class Any
trait TField[T]

Attributes

Companion:
object
Graph
Supertypes
class Object
trait Matchable
class Any
Known subtypes
object given_TField_Array.type
object given_TField_Date.type
object given_TField_Float.type
object given_TField_Int.type
object given_TField_Long.type
object jbool.type
object jdouble.type
object jfloat.type
object jlong.type
object TField

Attributes

Companion:
trait
Graph
Supertypes
class Object
trait Matchable
class Any
Self type
TField.type
trait Table[T <: Product] extends Selectable

Attributes

Companion:
object
Graph
Supertypes
trait Selectable
class Object
trait Matchable
class Any
Self type
object Table

Attributes

Companion:
trait
Graph
Supertypes
class Object
trait Matchable
class Any
Self type
Table.type
case class TableName(name: String) extends StaticAnnotation

Attributes

Graph
Supertypes
trait Serializable
trait Product
trait Equals
trait StaticAnnotation
class Annotation
class Object
trait Matchable
class Any
trait ToRecord[T]

Attributes

Companion:
object
Graph
Supertypes
class Object
trait Matchable
class Any
object ToRecord

Attributes

Companion:
trait
Graph
Supertypes
class Object
trait Matchable
class Any
Self type
case class Unique() extends StaticAnnotation

Attributes

Graph
Supertypes
trait Serializable
trait Product
trait Equals
trait StaticAnnotation
class Annotation
class Object
trait Matchable
class Any

Value members

Concrete methods

def getTable[T <: Product : Table](key: Long): Table[Record]

Extensions

Extensions

extension [R <: Record](record: R)
def as[T](using t: FromRecord[T]): Either[Throwable, T]
extension [R <: Record](records: Result[R])
def as[T](using t: FromRecord[T]): Vector[Either[Throwable, T]]
extension [T <: Product](t: T)
def toRecord(implicit evidence$1: ProductOf[T], tr: ToRecord[T]): ZIO[DSLContext, Throwable, Record]