Esempio n. 1
0
        // sqlbatch can also be a single sql statement - however, it won't allow you to
        // directly retrieve phyplan_ etc without go through list
        //
        public static StatementList ParseSqlStatements(string sqlbatch)
        {
            RawParser parser = new RawParser();

            parser.Init(sqlbatch);
            SQLiteParser.Sql_stmt_listContext stmtCxt = parser.sqlParser_.sql_stmt_list();
            return(parser.visitor_.VisitSql_stmt_list(stmtCxt) as StatementList);
        }
Esempio n. 2
0
 /// <summary>
 /// Visit a parse tree produced by <see cref="SQLiteParser.sql_stmt_list"/>.
 /// <para>
 /// The default implementation returns the result of calling <see cref="AbstractParseTreeVisitor{Result}.VisitChildren(IRuleNode)"/>
 /// on <paramref name="context"/>.
 /// </para>
 /// </summary>
 /// <param name="context">The parse tree.</param>
 /// <return>The visitor result.</return>
 public virtual Result VisitSql_stmt_list([NotNull] SQLiteParser.Sql_stmt_listContext context)
 {
     return(VisitChildren(context));
 }