Skip to content
This repository has been archived by the owner on Jan 9, 2024. It is now read-only.

Commit

Permalink
iasodjoiasd
Browse files Browse the repository at this point in the history
  • Loading branch information
mikeplotean committed Oct 16, 2023
1 parent acb6477 commit 8ec9587
Showing 1 changed file with 19 additions and 17 deletions.
36 changes: 19 additions & 17 deletions src/main/kotlin/id/walt/db/Db.kt
Original file line number Diff line number Diff line change
Expand Up @@ -59,21 +59,23 @@ object Db {
}
fun main(){
ConfigManager.loadConfigs(emptyArray())
val datasourceConfig = ConfigManager.getConfig<DatasourceConfiguration>()
Database.connect(datasourceConfig.hikariDataSource)
transaction {
SchemaUtils.create(
Accounts,
Emails,
Wallets,
AccountWallets,
WalletOperationHistories,
Keys,
Dids,
Credentials,
AccountKeys,
AccountDids,
AccountCredentials,
)
}
Db.start()
// ConfigManager.loadConfigs(emptyArray())
// val datasourceConfig = ConfigManager.getConfig<DatasourceConfiguration>()
// Database.connect(datasourceConfig.hikariDataSource)
// transaction {
// SchemaUtils.create(
// Accounts,
// Emails,
// Wallets,
// AccountWallets,
// WalletOperationHistories,
// Keys,
// Dids,
// Credentials,
// AccountKeys,
// AccountDids,
// AccountCredentials,
// )
// }
}

0 comments on commit 8ec9587

Please sign in to comment.