use of com.walmartlabs.concord.db.DatabaseModule in project concord by walmartlabs.
the class MigrateDB method main.
public static void main(String[] args) throws Exception {
EnvironmentSelector environmentSelector = new EnvironmentSelector();
Config cfg = new ConfigurationProcessor("concord-server", environmentSelector.select()).process();
Injector injector = Guice.createInjector(new WireModule(new SpaceModule(new URLClassSpace(MigrateDB.class.getClassLoader()), BeanScanning.CACHE), new OllieConfigurationModule("com.walmartlabs.concord.server", cfg), new DatabaseModule()));
new MigrateDB().run(injector);
}
use of com.walmartlabs.concord.db.DatabaseModule in project concord by walmartlabs.
the class ServerModule method configure.
@Override
protected void configure() {
install(new MetricModule());
install(new DatabaseModule());
}
use of com.walmartlabs.concord.db.DatabaseModule in project concord by walmartlabs.
the class ConcordModule method configure.
@Override
protected void configure() {
install(new ConfigurationModule());
install(new MetricModule());
install(new DatabaseModule());
install(new ResteasyModule());
install(new ValidationModule());
}
use of com.walmartlabs.concord.db.DatabaseModule in project concord by walmartlabs.
the class AbstractDaoTest method initDataSource.
@BeforeEach
public void initDataSource() {
DatabaseConfiguration cfg = new DatabaseConfigurationImpl("jdbc:postgresql://localhost:5432/postgres", "postgres", "q1", 3);
DatabaseModule db = new DatabaseModule(migrateDb);
this.dataSource = db.appDataSource(cfg, new MetricRegistry(), Collections.singleton(new MainDBChangeLogProvider()));
this.cfg = db.appJooqConfiguration(this.dataSource);
}
Aggregations