This commit is contained in:
parent
1c76eefb1d
commit
4c0d87d1ea
@ -1,5 +1,9 @@
|
|||||||
|
import database.DatabaseFactory
|
||||||
|
import database.dao.SampleObjects
|
||||||
import di.databasemodule
|
import di.databasemodule
|
||||||
import mq.ConsumerWrapper
|
import mq.ConsumerWrapper
|
||||||
|
import org.jetbrains.exposed.sql.SchemaUtils
|
||||||
|
import org.jetbrains.exposed.sql.transactions.transaction
|
||||||
import org.koin.core.context.GlobalContext.startKoin
|
import org.koin.core.context.GlobalContext.startKoin
|
||||||
|
|
||||||
fun main(vararg args: String) {
|
fun main(vararg args: String) {
|
||||||
@ -9,6 +13,11 @@ fun main(vararg args: String) {
|
|||||||
modules(databasemodule)
|
modules(databasemodule)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
DatabaseFactory.init()
|
||||||
|
transaction{
|
||||||
|
SchemaUtils.create(SampleObjects)
|
||||||
|
}
|
||||||
|
|
||||||
val consumerWrapper = ConsumerWrapper();
|
val consumerWrapper = ConsumerWrapper();
|
||||||
consumerWrapper.recieve();
|
consumerWrapper.recieve();
|
||||||
}
|
}
|
Loading…
Reference in New Issue
Block a user