liewhite.sqlx

package liewhite.sqlx

Members list

Packages

Type members

Classlikes

case class ColumnName(name: String) extends StaticAnnotation

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
trait StaticAnnotation
class Annotation
class Object
trait Matchable
class Any
Show all
case class DBConfig(`type`: String, host: String, username: String, db: String, port: Option[Int], password: Option[String], maxConnection: Int, minIdle: Int, idleMills: Int)

Attributes

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

Attributes

Companion
object
Supertypes
class Object
trait Matchable
class Any
object DBContext

Attributes

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

Attributes

Companion
object
Supertypes
class Object
trait Matchable
class Any
object DBDataSource

Attributes

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

Attributes

Supertypes
class Exception
class Throwable
trait Serializable
class Object
trait Matchable
class Any
Show all
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

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

Attributes

Companion
object
Supertypes
class Object
trait Matchable
class Any
object FromRecord

Attributes

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

Attributes

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

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
trait StaticAnnotation
class Annotation
class Object
trait Matchable
class Any
Show all
case class Length(l: Int) extends StaticAnnotation

Attributes

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

Attributes

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

Attributes

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

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
trait StaticAnnotation
class Annotation
class Object
trait Matchable
class Any
Show all
case class SplitTable(splitTo: Int) extends StaticAnnotation

Attributes

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

Attributes

Companion
object
Supertypes
class Object
trait Matchable
class Any
Known subtypes
object given_TField_Array.type
object given_TField_BigInt.type
object given_TField_Boolean.type
object given_TField_Date.type
object given_TField_Double.type
object given_TField_Float.type
object given_TField_Int.type
object given_TField_Integer.type
object given_TField_Long.type
object given_TField_String.type
object jbool.type
object jdouble.type
object jfloat.type
object jlong.type
Show all
object TField

Attributes

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

Attributes

Companion
object
Supertypes
trait Selectable
class Object
trait Matchable
class Any
Self type
Table[T]
object Table

Attributes

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

Attributes

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

Attributes

Companion
object
Supertypes
class Object
trait Matchable
class Any
object ToRecord

Attributes

Companion
trait
Supertypes
class Object
trait Matchable
class Any
Self type
ToRecord.type
case class Unique() extends StaticAnnotation

Attributes

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

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)(implicit evidence$1: ProductOf[T], tr: ToRecord[T])
def toRecord: ZIO[DSLContext, Throwable, Record]

Exports

Defined exports

final type DSLContext = DSLContext
Exported from jooq