Package com.splout.db.engine

Examples of com.splout.db.engine.MySQLManager


  public void test() throws Exception {
    EmbeddedMySQL mysql = new EmbeddedMySQL();
    mysql.start(true);
    try {
      // this only works with a pool of 1 connection, because the tester issues BEGIN / COMMIT with query() engine method
      final MySQLManager jdbcManager = new MySQLManager(mysql);
      basicTest(jdbcManager);
      jdbcManager.close();

    } finally {
      mysql.stop();
    }
  }
View Full Code Here


  public void testQuerySizeLimiting() throws Exception {
    EmbeddedMySQL mysql = new EmbeddedMySQL();
    mysql.start(true);
    try {
      // this only works with a pool of 1 connection, because the tester issues BEGIN / COMMIT with query() engine method
      final MySQLManager jdbcManager = new MySQLManager(mysql);
      querySizeLimitingTest(jdbcManager);
    } finally {
      mysql.stop();
    }
  }
View Full Code Here

  public void test() throws ClassNotFoundException, SQLException, IOException, InterruptedException {
    EmbeddedMySQL mysql = new EmbeddedMySQL();
    mysql.start(true);
    Connection conn = null;
    try {
      MySQLManager manager = new MySQLManager(mysql);
      conn = manager.getJdbcManager().getConnectionFromPool();

      insertData(conn);

      List<?> l = new QueryUtil(conn).executeQuery("SELECT * FROM test_table LIMIT 10;");
      assertEquals(10, l.size());
View Full Code Here

TOP

Related Classes of com.splout.db.engine.MySQLManager

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.