public string Render(SelectQuery selectQuery, DatabaseType databaseType) { ISqlRenderer renderer; switch (databaseType) { case DatabaseType.SqlServer: case DatabaseType.SqlServerCompact: renderer = new SqlServerRenderer(); break; default: renderer = new PostgresqlRenderer(); break; } return renderer.Render(selectQuery); }
public bool ValidateSelectQuery(SelectQuery selectQuery) { return _validator.IsValid(selectQuery); }