com.sxtanna.database.task.builder.SelectBuilder.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of Kuery Show documentation
Show all versions of Kuery Show documentation
MySQL Kotlin wrapper based on HikariCP
package com.sxtanna.database.task.builder
import com.sxtanna.database.struct.obj.Sort
import com.sxtanna.database.type.Sorted
import com.sxtanna.database.type.base.SqlObject
import kotlin.reflect.KClass
data class SelectBuilder(val clazz : KClass, val table : String) : WhereBuilder>(), Sorted> {
override val sorts = mutableListOf()
companion object Select {
@JvmSynthetic
inline fun from(table : String = T::class.simpleName!!) = SelectBuilder(T::class, table)
@JvmOverloads
fun from(clazz : Class, table : String = clazz.simpleName!!) = SelectBuilder(clazz.kotlin, table)
}
}