SqlCommand

object SqlCommand : Table

Functions

Link copied to clipboard
fun Column<UUID>.autoGenerate(): Column<UUID>
Link copied to clipboard
fun <N : Comparable<N>> Column<EntityID<N>>.autoinc(idSeqName: String?): Column<EntityID<N>>
Link copied to clipboard
fun <N : Any> Column<N>.autoIncrement(idSeqName: String?): Column<N>
Link copied to clipboard
fun binary(name: String): Column<ByteArray>
fun binary(name: String, length: Int): Column<ByteArray>
Link copied to clipboard
fun blob(name: String): Column<ExposedBlob>
Link copied to clipboard
fun bool(name: String): Column<Boolean>
Link copied to clipboard
fun byte(name: String): Column<Byte>
Link copied to clipboard
fun char(name: String): Column<Char>
fun char(name: String, length: Int, collate: String?): Column<String>
Link copied to clipboard
fun check(name: String, op: SqlExpressionBuilder.() -> Op<Boolean>)
fun <T> Column<T>.check(name: String, op: SqlExpressionBuilder.(Column<T>) -> Op<Boolean>): Column<T>
Link copied to clipboard
fun <T : Any> Column<T>.clientDefault(defaultValue: () -> T): Column<T>
Link copied to clipboard
open override fun createStatement(): List<String>
Link copied to clipboard
open infix override fun crossJoin(otherTable: ColumnSet): Join
Link copied to clipboard
fun <T : Enum<T>> customEnumeration(name: String, sql: String?, fromDb: (Any) -> T, toDb: (T) -> Any): Column<T>
Link copied to clipboard
fun decimal(name: String, precision: Int, scale: Int): Column<BigDecimal>
Link copied to clipboard
fun <T> Column<T>.default(defaultValue: T): Column<T>
fun <T> CompositeColumn<T>.default(defaultValue: T): CompositeColumn<T>
Link copied to clipboard
fun <T> Column<T>.defaultExpression(defaultValue: Expression<T>): Column<T>
Link copied to clipboard
open override fun describe(s: Transaction, queryBuilder: QueryBuilder)
Link copied to clipboard
fun double(name: String): Column<Double>
Link copied to clipboard
open override fun dropStatement(): List<String>
Link copied to clipboard
fun <T : Comparable<T>> Column<T>.entityId(): Column<EntityID<T>>
fun <ID : Comparable<ID>> entityId(name: String, table: IdTable<ID>): Column<EntityID<ID>>
fun <ID : Comparable<ID>> entityId(name: String, originalColumn: Column<ID>): Column<EntityID<ID>>
Link copied to clipboard
fun <T : Enum<T>> enumeration(name: String, klass: KClass<T>): Column<T>
Link copied to clipboard
fun <T : Enum<T>> enumerationByName(name: String, length: Int, klass: KClass<T>): Column<T>
Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
Link copied to clipboard
fun float(name: String): Column<Float>
Link copied to clipboard
open infix override fun fullJoin(otherTable: ColumnSet): Join
Link copied to clipboard
open override fun hashCode(): Int
Link copied to clipboard
fun index(isUnique: Boolean, vararg columns: Column<*>)
fun <T> Column<T>.index(customIndexName: String?, isUnique: Boolean): Column<T>
fun index(customIndexName: String?, isUnique: Boolean, vararg columns: Column<*>, indexType: String?)
Link copied to clipboard
open infix override fun innerJoin(otherTable: ColumnSet): Join
Link copied to clipboard
fun integer(name: String): Column<Int>
Link copied to clipboard
open override fun join(otherTable: ColumnSet, joinType: JoinType, onColumn: Expression<*>?, otherColumn: Expression<*>?, additionalConstraint: SqlExpressionBuilder.() -> Op<Boolean>?): Join
Link copied to clipboard
open infix override fun leftJoin(otherTable: ColumnSet): Join
Link copied to clipboard
fun long(name: String): Column<Long>
Link copied to clipboard
open override fun modifyStatement(): List<String>
Link copied to clipboard
fun nameInDatabaseCase(): String
Link copied to clipboard
fun <T : Any, C : CompositeColumn<T>> C.nullable(): CompositeColumn<T?>
fun <T : Any> Column<T>.nullable(): Column<T?>
Link copied to clipboard
fun <T : Comparable<T>> optReference(name: String, foreign: IdTable<T>, onDelete: ReferenceOption?, onUpdate: ReferenceOption?, fkName: String?): Column<EntityID<T>?>
fun <T : Comparable<T>> optReference(name: String, refColumn: Column<T>, onDelete: ReferenceOption?, onUpdate: ReferenceOption?, fkName: String?): Column<T?>
fun <T : Comparable<T>, E : EntityID<T>> optReference(name: String, refColumn: Column<E>, onDelete: ReferenceOption?, onUpdate: ReferenceOption?, fkName: String?): Column<E?>
Link copied to clipboard
fun <T> Column<T>.primaryKey(indx: Int?): Column<T>
Link copied to clipboard
fun <T : Comparable<T>> reference(name: String, foreign: IdTable<T>, onDelete: ReferenceOption?, onUpdate: ReferenceOption?, fkName: String?): Column<EntityID<T>>
fun <T : Comparable<T>> reference(name: String, refColumn: Column<T>, onDelete: ReferenceOption?, onUpdate: ReferenceOption?, fkName: String?): Column<T>
fun <T : Comparable<T>, E : EntityID<T>> reference(name: String, refColumn: Column<E>, onDelete: ReferenceOption?, onUpdate: ReferenceOption?, fkName: String?): Column<E>
Link copied to clipboard
infix fun <T : Comparable<T>, S : T, C : Column<S>> C.references(ref: Column<T>): C
fun <T : Comparable<T>, S : T, C : Column<S>> C.references(ref: Column<T>, onDelete: ReferenceOption?, onUpdate: ReferenceOption?, fkName: String?): C
fun <T : Comparable<T>, S : T, C : Column<S>> C.references(ref: Column<EntityID<T>>, onDelete: ReferenceOption?, onUpdate: ReferenceOption?, fkName: String?): C
Link copied to clipboard
fun <T> registerColumn(name: String, type: IColumnType): Column<T>
Link copied to clipboard
fun <R, T : CompositeColumn<R>> registerCompositeColumn(column: T): T
Link copied to clipboard
fun <TColumn : Column<*>> replaceColumn(oldColumn: Column<*>, newColumn: TColumn): TColumn
Link copied to clipboard
open infix override fun rightJoin(otherTable: ColumnSet): Join
Link copied to clipboard
fun short(name: String): Column<Short>
Link copied to clipboard
fun slice(columns: List<Expression<*>>): FieldSet
fun slice(column: Expression<*>, vararg columns: Expression<*>): FieldSet
Link copied to clipboard
fun text(name: String, collate: String?, eagerLoading: Boolean): Column<String>
Link copied to clipboard
fun ubyte(name: String): Column<UByte>
Link copied to clipboard
fun uinteger(name: String): Column<UInt>
Link copied to clipboard
fun ulong(name: String): Column<ULong>
Link copied to clipboard
fun uniqueIndex(vararg columns: Column<*>)
fun <T> Column<T>.uniqueIndex(customIndexName: String?): Column<T>
fun uniqueIndex(customIndexName: String?, vararg columns: Column<*>)
Link copied to clipboard
fun ushort(name: String): Column<UShort>
Link copied to clipboard
fun uuid(name: String): Column<UUID>
Link copied to clipboard
fun varchar(name: String, length: Int, collate: String?): Column<String>

Properties

Link copied to clipboard
val autoIncColumn: Column<*>?
Link copied to clipboard
open override val columns: List<Column<*>>
Link copied to clipboard
val ddl: List<String>
Link copied to clipboard
open override val fields: List<Expression<*>>
Link copied to clipboard
val indices: List<Index>
Link copied to clipboard
val key: Column<String>
Link copied to clipboard
open val primaryKey: Table.PrimaryKey?
Link copied to clipboard
open val realFields: List<Expression<*>>
Link copied to clipboard
val response: Column<String>
Link copied to clipboard
open override val source: ColumnSet
Link copied to clipboard
open val tableName: String