Esempio n. 1
0
        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);
        }
Esempio n. 2
0
        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);
        }
Esempio n. 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);
        }
Esempio n. 4
0
        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);
        }
Esempio n. 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);
        }