English | 简体中文

api-docs / org.ktorm.support.mysql / MySqlDialect

MySqlDialect

open class MySqlDialect : SqlDialect (source code)

SqlDialect implementation for MySQL database.

Constructors

NameSummary

<init>

MySqlDialect()

SqlDialect implementation for MySQL database.

Functions

NameSummary

createExpressionVisitor

open fun createExpressionVisitor(
    interceptor: SqlExpressionVisitorInterceptor
): SqlExpressionVisitor

Create a default visitor instance for this dialect using the specific interceptor.

createSqlFormatter

open fun createSqlFormatter(
    database: Database,
    beautifySql: Boolean,
    indentSize: Int
): SqlFormatter

Create a SqlFormatter instance, formatting SQL expressions as strings with their execution arguments.

Inherited Functions

NameSummary

executeUpdateAndRetrieveKeys

open fun executeUpdateAndRetrieveKeys(
    database: Database,
    sql: String,
    args: List<ArgumentExpression<*>>
): Pair<Int, CachedRowSet>

Execute the given SQL string (typically an insert statement), then return the effected row count along with
the generated keys.

Extension Functions

NameSummary

eq

infix fun <T : Any> T.eq(
    expr: ColumnDeclaring<T>
): BinaryExpression<Boolean>

Equal operator, translated to = in SQL.

neq

infix fun <T : Any> T.neq(
    expr: ColumnDeclaring<T>
): BinaryExpression<Boolean>

Not-equal operator, translated to <> in SQL.

notEq

infix fun <T : Any> T.notEq(
    expr: ColumnDeclaring<T>
): BinaryExpression<Boolean>

Not-equal operator, translated to <> in SQL.