api-docs / org.ktorm.support.mysql
Package org.ktorm.support.mysql
MySQL dialect module for Ktorm.
Types
Name | Summary |
---|---|
data class BulkInsertExpression : SqlExpression Bulk insert expression, represents a bulk insert statement in MySQL. | |
class BulkInsertOrUpdateOnDuplicateKeyClauseBuilder : DSL builder for bulk insert or update on duplicate key clause. | |
class BulkInsertOrUpdateStatementBuilder<T : BaseTable<*>> : DSL builder for bulk insert or update statements. | |
open class BulkInsertStatementBuilder<T : BaseTable<*>> DSL builder for bulk insert statements. | |
data class DefaultValueExpression<T : Any> : Default value expression, translated to the | |
data class InsertOrUpdateExpression : SqlExpression Insert or update expression, represents an insert statement with an | |
class InsertOrUpdateStatementBuilder : DSL builder for insert or update statements. | |
data class LockingClause MySQL locking clause, See https://dev.mysql.com/doc/refman/8.0/en/innodb-locking-reads.html | |
enum class LockingMode MySQL locking mode. | |
enum class LockingWait MySQL wait strategy for locked records. | |
data class MatchAgainstExpression : ScalarExpression<Boolean> Match against expression, represents an | |
class MatchColumns : List<ColumnExpression<*>> Intermediate class that wraps the search columns of a MatchAgainstExpression. | |
open class MySqlAssignmentsBuilder : AssignmentsBuilder Base class of MySQL DSL builders, provide basic functions used to build assignments for insert or update DSL. | |
open class MySqlDialect : SqlDialect SqlDialect implementation for MySQL database. | |
interface MySqlExpressionVisitor : SqlExpressionVisitor Base interface designed to visit or modify MySQL expression trees using visitor pattern. | |
open class MySqlFormatter : SqlFormatter implementation for MySQL, formatting SQL expressions as strings with their execution arguments. | |
data class NaturalJoinExpression : QuerySourceExpression MySQL natural join expression. | |
enum class SearchModifier Enum class represents search modifiers in MySQL |
Functions
Name | Summary |
---|---|
fun MatchColumns.against( Create a MatchAgainstExpression that searches on the current MatchColumns. | |
fun <T : BaseTable<*>> Database.bulkInsert( Construct a bulk insert expression in the given closure, then execute it and return the effected row count. | |
fun <T : BaseTable<*>> Database.bulkInsertOrUpdate( fun <T : BaseTable<*>> T. Bulk insert records to the table, determining if there is a key conflict while inserting each of them, | |
fun dateDiff( fun dateDiff( fun dateDiff( MySQL datediff function, translated to | |
fun <T : Any> Column<T>.defaultValue(): DefaultValueExpression<T> Return a default value for this column, see DefaultValueExpression. | |
fun <T : Comparable<T>> greatest( MySQL greatest function, translated to fun <T : Comparable<T>> greatest( fun <T : Comparable<T>> greatest( MySQL greatest function, translated to | |
fun <T : Any> IF( fun <T : Any> IF( MySQL | |
fun <T : Any> ColumnDeclaring<T>.ifNull( fun <T : Any> ColumnDeclaring<T>.ifNull( MySQL ifnull function, translated to | |
fun <T : BaseTable<*>> Database.insertOrUpdate( Insert a record to the table, determining if there is a key conflict while it’s being inserted, and automatically | |
fun <T : Any> Column<List<T>>.jsonContains( MySQL json_contains function, translated to | |
fun <T : Any> Column<*>.jsonExtract( MySQL json_extract function, translated to | |
fun <T : Comparable<T>> least( MySQL least function, translated to fun <T : Comparable<T>> least( fun <T : Comparable<T>> least( MySQL least function, translated to | |
fun Query.locking( fun <E : Any, T : BaseTable<E>> EntitySequence<E, T>.locking( Specify the locking clause of this query, an example generated SQL could be: | |
fun match(vararg columns: Column<*>): MatchColumns Return an intermediate object that wraps the columns to be searched. We can continue to call against on the | |
fun BaseTable<*>. fun QuerySource.naturalJoin(right: BaseTable<*>): QuerySource Join the right table and return a new QuerySource, translated to | |
fun rand(): FunctionExpression<Double> MySQL rand function, translated to | |
fun ColumnDeclaring<String>.replace( MySQL replace function, translated to | |
fun ColumnDeclaring<String>.toLowerCase(): FunctionExpression<String> MySQL lower function, translated to | |
fun ColumnDeclaring<String>.toUpperCase(): FunctionExpression<String> MySQL upper function, translated to |