Compare commits

...

2 Commits

Author SHA1 Message Date
a719addee4
Merge branch 'master' of ssh://git.kmlabz.com:2222/birbnetes/output-service-rdb-consumer
All checks were successful
continuous-integration/drone/push Build is passing
2021-08-17 17:23:47 +02:00
df13c145e7
connect to db 2021-08-17 17:23:34 +02:00

View File

@ -1,5 +1,9 @@
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) {
@ -9,6 +13,11 @@ fun main(vararg args: String) {
modules(databasemodule)
}
DatabaseFactory.init()
transaction{
SchemaUtils.create(ResultObjects)
}
val consumerWrapper = ConsumerWrapper();
consumerWrapper.recieve();
}