@Test @FixFor("MODE-2674") public void shouldAllowCustomHikariPassthroughProperties() throws ParsingException { RelationalDb db = Schematic.getDb(RelationalProviderTest.class.getClassLoader().getResourceAsStream("db-config-custom-props.json")); assertNotNull(db); DataSourceManager dsManager = db.dsManager(); HikariDataSource dataSource = (HikariDataSource) dsManager.dataSource(); assertEquals(4, dataSource.getMinimumIdle()); assertEquals(4000, dataSource.getLeakDetectionThreshold()); assertEquals(5, dataSource.getMaximumPoolSize()); assertFalse(dataSource.isReadOnly()); assertEquals("testPool", dataSource.getPoolName()); }
@Override public RelationalDb getDB(String type, Document configuration) { if (!RelationalDbConfig.ALIASES.contains(type.toLowerCase())) { return null; } return new RelationalDb(configuration); }
RelationalProvider implements SchematicDbProvider<RelationalDb> { @Override public RelationalDb getDB(String type, Document configuration) { if (!RelationalDbConfig.ALIASES.contains(type.toLowerCase())) { return null; } return new RelationalDb(configuration); } }
RelationalProvider implements SchematicDbProvider<RelationalDb> { @Override public RelationalDb getDB(String type, Document configuration) { if (!RelationalDbConfig.ALIASES.contains(type.toLowerCase())) { return null; } return new RelationalDb(configuration); }  }
RelationalProvider implements SchematicDbProvider<RelationalDb> { @Override public RelationalDb getDB(String type, Document configuration) { if (!RelationalDbConfig.ALIASES.contains(type.toLowerCase())) { return null; } return new RelationalDb(configuration); }  @Override RelationalDb getDB(String type, Document configuration); }
RelationalProvider implements SchematicDbProvider<RelationalDb> { @Override public RelationalDb getDB(String type, Document configuration) { if (!RelationalDbConfig.ALIASES.contains(type.toLowerCase())) { return null; } return new RelationalDb(configuration); }  @Override RelationalDb getDB(String type, Document configuration);  }