//public SqlParser() //{ // sqlParser = (ISQLParser)new COMSQLParser(); //} public static string Parse(string sql, SqlSyntaxConstants syntax) { if (sqlParser == null) { sqlParser = (ISQLParser) new COMSQLParser(); } return(sqlParser.ParseSQLSyntax(sql, syntax)); }
public void ParseSQL(RendererType rendererType, string sql) { if (_Parser == null) { _Parser = new TSqlParser(); } if (_Compiler == null) { _Compiler = new ExecutronCompiler(); } _Parser.ParseSQL(sql); CompileGeneratedSqlOm(rendererType); }
public SqlOMEngine(ISQLParser parser, ICompiler compiler) { _Parser = parser; _Compiler = compiler; }
//public SqlParser() //{ // sqlParser = (ISQLParser)new COMSQLParser(); //} public static string Parse(string sql, SqlSyntaxConstants syntax) { if (sqlParser == null) sqlParser = (ISQLParser)new COMSQLParser(); return sqlParser.ParseSQLSyntax(sql, syntax); }