Search in sources :

Example 1 with SQLDialectRegistry

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;
}
Also used : SQLDialect(org.jkiss.dbeaver.model.sql.SQLDialect) SQLDialectRegistry(org.jkiss.dbeaver.model.sql.registry.SQLDialectRegistry)

Aggregations

SQLDialect (org.jkiss.dbeaver.model.sql.SQLDialect)1 SQLDialectRegistry (org.jkiss.dbeaver.model.sql.registry.SQLDialectRegistry)1