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

org.komapper.dialect.mariadb.r2dbc.MariaDbR2dbcDialect.kt Maven / Gradle / Ivy

There is a newer version: 3.0.0
Show newest version
package org.komapper.dialect.mariadb.r2dbc

import io.r2dbc.spi.R2dbcException
import org.komapper.dialect.mariadb.MariaDbDialect
import org.komapper.r2dbc.R2dbcDialect

interface MariaDbR2dbcDialect : MariaDbDialect, R2dbcDialect {

    override fun isUniqueConstraintViolationError(exception: R2dbcException): Boolean {
        return exception.errorCode in MariaDbDialect.UNIQUE_CONSTRAINT_VIOLATION_ERROR_CODES
    }

    override fun supportsBatchExecutionOfParameterizedStatement(): Boolean = false
}

private object MariaDbR2dbcDialectImpl : MariaDbR2dbcDialect

fun MariaDbR2dbcDialect(): MariaDbR2dbcDialect {
    return MariaDbR2dbcDialectImpl
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy