com.sxtanna.db.struct.Database.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 DSL/ORM based on HikariCP
package com.sxtanna.db.struct
import com.sxtanna.db.type.Named
abstract class Database : Named {
override val name : String
get() = this::class.simpleName ?: throw UnsupportedOperationException("Class ${this::class} cannot be a database")
@PublishedApi
internal val tables = mutableListOf>()
inline fun table() : Table {
return Table.of().also { tables.add(it) }
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy