23 lines
554 B
Kotlin
23 lines
554 B
Kotlin
import database.DatabaseFactory
|
|
import database.dao.ResultObjects
|
|
import di.databasemodule
|
|
import mq.ConsumerWrapper
|
|
import org.jetbrains.exposed.sql.SchemaUtils
|
|
import org.jetbrains.exposed.sql.transactions.transaction
|
|
import org.koin.core.context.GlobalContext.startKoin
|
|
|
|
fun main(vararg args: String) {
|
|
|
|
startKoin {
|
|
printLogger()
|
|
modules(databasemodule)
|
|
}
|
|
|
|
DatabaseFactory.init()
|
|
transaction{
|
|
SchemaUtils.create(ResultObjects)
|
|
}
|
|
|
|
val consumerWrapper = ConsumerWrapper();
|
|
consumerWrapper.recieve();
|
|
} |