Package org.tmatesoft.sqljet.core.internal.table

Examples of org.tmatesoft.sqljet.core.internal.table.SqlJetPragmasHandler


    public Object pragma(final String sql) throws SqlJetException {
        checkOpen();
        refreshSchema();
        return runWithLock(new ISqlJetRunnableWithLock() {
            public Object runWithLock(SqlJetDb db) throws SqlJetException {
                return new SqlJetPragmasHandler(getOptions()).pragma(sql);
            }
        });
    }
View Full Code Here


                } else if ("create_index".equals(stmtName)) {
                    db.createIndex(sql);
                } else if ("drop_index".equals(stmtName)) {
                    handleDropIndex();
                } else if ("pragma".equals(stmtName)) {
                    result = new SqlJetPragmasHandler(db.getOptions()).pragma(ast);
                    return result != null;
                } else {
                    throw new SqlJetException(SqlJetErrorCode.ERROR, "Unsupported statement.");
                }
            } catch (RecognitionException e) {
View Full Code Here

    }

    @Override
    protected void setUp() throws Exception {
        options = new TestOptions();
        handler = new SqlJetPragmasHandler(options);
    }
View Full Code Here

TOP

Related Classes of org.tmatesoft.sqljet.core.internal.table.SqlJetPragmasHandler

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.