Package play.db

Examples of play.db.SQLSplitter


            ps.execute();
        }
      
        // Execute script
        if (runScript) {
           for (CharSequence sql : new SQLSplitter((evolution.applyUp ? evolution.sql_up : evolution.sql_down))) {
                final String s = sql.toString().trim();
                if (StringUtils.isEmpty(s)) {
                    continue;
                }             
                connection.createStatement().execute(s);
View Full Code Here


    public static final String PROFILE_NAME = "Fixtures";

    static Pattern keyPattern = Pattern.compile("([^(]+)\\(([^)]+)\\)");

    public static void executeSQL(String sqlScript) {
        for(CharSequence sql : new SQLSplitter(sqlScript)) {
            final String s = sql.toString().trim();
            if(s.length() > 0) {
                DB.execute(s);
            }
        }
View Full Code Here

TOP

Related Classes of play.db.SQLSplitter

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.