All Downloads are FREE. Search and download functionalities are using the official Maven repository.

liewhite.sqlx.Annotations.scala Maven / Gradle / Ivy

There is a newer version: 4.2.3
Show newest version
package liewhite.sqlx

// name in db
case class TableName(name: String)  extends scala.annotation.StaticAnnotation
case class SplitTable(splitTo: Int) extends scala.annotation.StaticAnnotation

case class ColumnName(name: String) extends scala.annotation.StaticAnnotation

// case class DataType(tp: org.jooq.DataType[_]) extends scala.annotation.StaticAnnotation

// primary key
case class Primary() extends scala.annotation.StaticAnnotation

// index, maybe unique, annotate Index with same name will create a composite index
case class Index(name: String, unique: Boolean = false, priority: Int = 0) extends scala.annotation.StaticAnnotation

// unique constraint
case class Unique()                              extends scala.annotation.StaticAnnotation
case class Length(l: Int)                        extends scala.annotation.StaticAnnotation
case class Precision(precision: Int, scale: Int) extends scala.annotation.StaticAnnotation




© 2015 - 2024 Weber Informatics LLC | Privacy Policy