usql.dao

package usql.dao

Members list

Type members

Classlikes

case class Alias[T](aliasName: String, tabular: SqlTabular[T])

Experimental helper for building aliases used in Join Statements

Experimental helper for building aliases used in Join Statements

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
case class ColumnGroup(mapping: ColumnGroupMapping) extends StaticAnnotation

Controls the way nested column group names are generated.

Controls the way nested column group names are generated.

Value parameters

mapping

the mapping which will be applied

Attributes

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

Maps an inner column name inside a ColumnGroup.

Maps an inner column name inside a ColumnGroup.

Attributes

Companion
object
Supertypes
class Object
trait Matchable
class Any
Known subtypes
object Anonymous
class Pattern

Attributes

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

Annotation to override the default column name in SqlColumnar

Annotation to override the default column name in SqlColumnar

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
trait StaticAnnotation
class Annotation
class Object
trait Matchable
class Any
Show all
case class ColumnPath[R, T](root: SqlFielded[R], fields: List[String], alias: Option[String]) extends Selectable, SqlIdentifying

Helper for going through the field path of SqlFielded.

Helper for going through the field path of SqlFielded.

They can provide Identifiers and build getters like lenses do.

Type parameters

R

root model

T

end path

Attributes

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

Attributes

Companion
class
Supertypes
trait Product
trait Mirror
class Object
trait Matchable
class Any
Self type
ColumnPath.type
trait Crd[T]

Simple create/read/delete interface

Simple create/read/delete interface

Attributes

Supertypes
class Object
trait Matchable
class Any
Known subtypes
class CrdBase[T]
class KeyedCrudBase[K, T]
trait KeyedCrud[T]
abstract class CrdBase[T] extends Crd[T]

Implementation of Crd for Tabular data.

Implementation of Crd for Tabular data.

Attributes

Supertypes
trait Crd[T]
class Object
trait Matchable
class Any
Known subtypes
class KeyedCrudBase[K, T]
sealed trait Field[T]

A Field of a case class.

A Field of a case class.

Attributes

Companion
object
Supertypes
class Object
trait Matchable
class Any
Known subtypes
class Column[T]
class Group[T]
object Field

Attributes

Companion
trait
Supertypes
trait Sum
trait Mirror
class Object
trait Matchable
class Any
Self type
Field.type
trait KeyedCrud[T] extends Crd[T]

CRUD (Create, Retrieve, Update, Delete) for keyed data.

CRUD (Create, Retrieve, Update, Delete) for keyed data.

Attributes

Supertypes
trait Crd[T]
class Object
trait Matchable
class Any
Known subtypes
class KeyedCrudBase[K, T]
abstract class KeyedCrudBase[K, T](using keyDataType: DataType[K]) extends CrdBase[T], KeyedCrud[T]

Implementation of KeyedCrd for KeyedTabular data.

Implementation of KeyedCrd for KeyedTabular data.

Attributes

Supertypes
trait KeyedCrud[T]
class CrdBase[T]
trait Crd[T]
class Object
trait Matchable
class Any
Show all
object Macros

Attributes

Supertypes
class Object
trait Matchable
class Any
Self type
Macros.type
trait NameMapping

Maps Column / Table names.

Maps Column / Table names.

Attributes

Companion
object
Supertypes
class Object
trait Matchable
class Any
Known subtypes
object Default
object NameMapping

Attributes

Companion
trait
Supertypes
class Object
trait Matchable
class Any
Self type
case class SqlColumn[T](id: SqlIdentifier, dataType: DataType[T])

A Single Column

A Single Column

Attributes

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

Encapsulates column data and codecs for a product type.

Encapsulates column data and codecs for a product type.

Note: for case classes, this is usually presented by SqlFielded

Attributes

Supertypes
class Object
trait Matchable
class Any
Known subtypes
trait SqlFielded[T]
class SimpleSqlFielded[T]
trait SqlTabular[T]
class SimpleTabular[T]
trait SqlFielded[T] extends SqlColumnar[T]

Something which has fields (e.g. a case class)

Something which has fields (e.g. a case class)

Attributes

Companion
object
Supertypes
trait SqlColumnar[T]
class Object
trait Matchable
class Any
Known subtypes
class SimpleSqlFielded[T]
trait SqlTabular[T]
class SimpleTabular[T]
object SqlFielded

Attributes

Companion
trait
Supertypes
class Object
trait Matchable
class Any
Self type
SqlFielded.type
trait SqlTabular[T] extends SqlFielded[T]

Maps some thing to a whole table

Maps some thing to a whole table

Attributes

Companion
object
Supertypes
trait SqlFielded[T]
trait SqlColumnar[T]
class Object
trait Matchable
class Any
Known subtypes
class SimpleTabular[T]
object SqlTabular

Attributes

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

Annotation to override the default table name in SqlTabular

Annotation to override the default table name in SqlTabular

Attributes

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