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

jvmMain.dev.inmo.micro_utils.repos.exposed.ExposedTableInitialization.kt Maven / Gradle / Ivy

There is a newer version: 0.22.2
Show newest version
package dev.inmo.micro_utils.repos.exposed

import org.jetbrains.exposed.sql.*
import org.jetbrains.exposed.sql.transactions.transaction

fun Table.initTable(database: Database) {
    transaction(database) { SchemaUtils.createMissingTablesAndColumns(this@initTable) }
}

fun  T.initTable() where T: ExposedRepo, T: Table = initTable(database)




© 2015 - 2024 Weber Informatics LLC | Privacy Policy