1

Allow to select between in-memory ledger and mongo ledger

This commit is contained in:
2018-06-10 09:12:16 +03:00
parent 0f24c37ac5
commit feabe74942
10 changed files with 212 additions and 78 deletions

View File

@@ -1,4 +1,6 @@
import com.devsoap.dbt.modules.DBTExecutorModule
import com.devsoap.dbt.services.LedgerService
import com.devsoap.dbt.services.MongoLedgerService
import org.h2.jdbcx.JdbcDataSource
import org.slf4j.LoggerFactory
@@ -16,9 +18,6 @@ ratpack {
bindings {
bindInstance(DataSource, new JdbcDataSource(url: 'jdbc:h2:mem:dbtdb;DB_CLOSE_DELAY=-1', user: ''))
module (DBTExecutorModule) { config ->
log.info "Executor available at $config.executor.remoteUrl"
log.info "Ledger available at $config.ledger.remoteUrl"
}
module (DBTExecutorModule)
}
}