Exemple #1
0
        //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));
        }
Exemple #2
0
        public void ParseSQL(RendererType rendererType, string sql)
        {
            if (_Parser == null)
            {
                _Parser = new TSqlParser();
            }
            if (_Compiler == null)
            {
                _Compiler = new ExecutronCompiler();
            }

            _Parser.ParseSQL(sql);

            CompileGeneratedSqlOm(rendererType);
        }
Exemple #3
0
 public SqlOMEngine(ISQLParser parser, ICompiler compiler)
 {
     _Parser   = parser;
     _Compiler = compiler;
 }
Exemple #4
0
        //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);
        }