KSqlClient

interface KSqlClient

Functions

Link copied to clipboard
@NewChain
abstract fun caches(block: KCacheDisableDsl.() -> Unit): KSqlClient
Link copied to clipboard
abstract fun <E : Any> createDelete(entityType: KClass<E>, block: KMutableDelete<E>.() -> Unit): KExecutable<Int>
Link copied to clipboard
open fun <E : Any, R> createQuery(entityType: KClass<E>, block: KMutableRootQuery<E>.() -> KConfigurableRootQuery<E, R>): KConfigurableRootQuery<E, R>
Link copied to clipboard
abstract fun <E : Any> createUpdate(entityType: KClass<E>, block: KMutableUpdate<E>.() -> Unit): KExecutable<Int>
Link copied to clipboard
@NewChain
abstract fun disableSlaveConnectionManager(): KSqlClient
Link copied to clipboard
abstract fun <R> executeNativeSql(master: Boolean = false, block: (Connection) -> R): R
Link copied to clipboard
@NewChain
abstract fun filters(block: KFilterDsl.() -> Unit): KSqlClient
Link copied to clipboard
abstract fun getAssociations(prop: KProperty1<*, *>): KAssociations
Link copied to clipboard
abstract fun getTriggers(transaction: Boolean): KTriggers
  • If trigger type is 'BINLOG_ONLY'
    • If `transaction` is true, throws exception
    • If `transaction` is false, return binlog trigger
  • If trigger type is 'TRANSACTION_ONLY', returns transaction trigger no matter what the `transaction` is
  • If trigger type is 'BOTH'
    • If `transaction` is true, return transaction trigger
    • If `transaction` is false, return binlog trigger
    Note that the objects returned by different parameters are independent of each other.

Properties

Link copied to clipboard
abstract val binLog: BinLog
Link copied to clipboard
abstract val caches: KCaches
Link copied to clipboard
abstract val entities: KEntities
Link copied to clipboard
abstract val entityManager: EntityManager
Link copied to clipboard
abstract val filters: KFilters
Link copied to clipboard
abstract val javaClient: JSqlClient
Link copied to clipboard
abstract val loaders: KLoaders
Link copied to clipboard
abstract val queries: KQueries
Link copied to clipboard
abstract val triggers: KTriggers

This property is equivalent to getTriggers(false)