예제 #1
0
파일: Where.cs 프로젝트: MartyIce/SqlParser
        public override void Build(ParsedSql ret, List <string> tokens, ref int i)
        {
            i++;


            var bi = new BuilderIterator();

            bi.AddBuilder(new GroupBy(), true, true);
            bi.AddBuilder(new WhereStatementBuilder());
            bi.Build(ret, tokens, ref i);
        }
예제 #2
0
파일: On.cs 프로젝트: MartyIce/SqlParser
        public override void Build(ParsedSql ret, List <string> tokens, ref int i)
        {
            i++;

            var bi = new BuilderIterator();

            bi.AddBuilder(new Join());
            bi.AddBuilder(new Where());
            bi.AddBuilder(new On());
            bi.AddBuilder(new OnJoinStatementBuilder(), false);
            bi.Build(ret, tokens, ref i);
        }
예제 #3
0
        public override void Build(ParsedSql ret, List <string> tokens, ref int i)
        {
            i++;
            i++;

            // Select
            var bi = new BuilderIterator();

            bi.AddBuilder(new Comma());
            bi.AddBuilder(new GroupByField(), false);
            bi.Build(ret, tokens, ref i);
        }
예제 #4
0
파일: From.cs 프로젝트: MartyIce/SqlParser
        public override void Build(ParsedSql ret, List <string> tokens, ref int i)
        {
            i++;

            // Select
            var bi = new BuilderIterator();

            bi.AddBuilder(new Where(), true, true);
            bi.AddBuilder(new On());
            bi.AddBuilder(new Join());
            bi.AddBuilder(new GroupBy());
            bi.AddBuilder(new Table());
            bi.Build(ret, tokens, ref i);
        }
예제 #5
0
        public override void Build(ParsedSql ret, List <string> tokens, ref int i)
        {
            SelectStatement selectStatement = new SelectStatement();

            ret.Select = selectStatement;
            i++;

            // Select
            var bi = new BuilderIterator();

            bi.AddBuilder(new From());
            bi.AddBuilder(new Comma());
            bi.AddBuilder(new SelectField(), false);
            bi.Build(ret, tokens, ref i);
        }