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

com.sxtanna.database.task.builder.SelectBuilder.kt Maven / Gradle / Ivy

There is a newer version: 3.0-beta
Show newest version
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)

	}

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy