use of org.jkiss.dbeaver.model.sql.registry.SQLDialectRegistry in project dbeaver by serge-rider.
the class SQLScriptParserTest method setDialect.
private SQLDialect setDialect(String name) throws DBException {
SQLDialectRegistry registry = SQLDialectRegistry.getInstance();
SQLDialect dialect = registry.getDialect(name).createInstance();
Mockito.when(dataSource.getSQLDialect()).thenReturn(dialect);
return dialect;
}
Aggregations