Examples of SQLite4JavaManager


Examples of com.splout.db.engine.SQLite4JavaManager

   */
  public static void createFooDatabase(String where, int a, String b) throws SQLException, JSONSerDeException,
      ClassNotFoundException, EngineException {
    File dbFolder = new File(where);
    dbFolder.mkdir();
    final SQLite4JavaManager manager = new SQLite4JavaManager();
    manager.init(new File(where + "/" + "foo.db"), null, null);
    manager.query("DROP TABLE IF EXISTS t;", 100);
    manager.query("CREATE TABLE t (a INT, b TEXT);", 100);
    manager.query("INSERT INTO t (a, b) VALUES (" + a + ", \"" + b + "\")", 100);
    manager.close();
  }
View Full Code Here

Examples of com.splout.db.engine.SQLite4JavaManager

    File dbFile = new File(TEST_DB_1);
    if(dbFile.exists()) {
      dbFile.delete();
    }

    final SQLite4JavaManager sqlite4Java = new SQLite4JavaManager(TEST_DB_1, null);
    basicTest(sqlite4Java);
    sqlite4Java.close();
    dbFile.delete();
  }
View Full Code Here

Examples of com.splout.db.engine.SQLite4JavaManager

    File dbFile = new File(TEST_DB_2);
    if(dbFile.exists()) {
      dbFile.delete();
    }

    final SQLite4JavaManager sqlite4Java = new SQLite4JavaManager(TEST_DB_2, null);
    querySizeLimitingTest(sqlite4Java);
    sqlite4Java.close();
    dbFile.delete();
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.