1

Replace in-memory ledger with MongoDB

This commit is contained in:
2018-06-09 20:45:18 +03:00
parent 0e21b7eee2
commit 0f24c37ac5
17 changed files with 209 additions and 174 deletions

View File

@@ -13,8 +13,10 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
import com.devsoap.dbt.DBTModule
import com.devsoap.dbt.config.DBTConfig
import com.devsoap.dbt.modules.DBTExecutorModule
import com.devsoap.dbt.modules.DBTLedgerModule
import org.flywaydb.core.Flyway
import org.h2.jdbcx.JdbcDataSource
import ratpack.service.Service
@@ -33,11 +35,14 @@ ratpack {
bindings {
module (DBTModule) {
it.ledger.remoteUrl = 'http://localhost:8888/ledger'
module (DBTLedgerModule) {
it.executor.remoteUrl = 'http://localhost:8888/executor'
}
module (DBTExecutorModule) {
it.ledger.remoteUrl = 'http://localhost:8888/ledger'
}
bindInstance(DataSource, new JdbcDataSource(url: 'jdbc:h2:mem:dbtdb;DB_CLOSE_DELAY=-1', user: ''))
bind FlywayMigrationService
}