Skip to content

Commit

Permalink
Update to SQLite-jdbc 3.8.9 and improve the testsuite
Browse files Browse the repository at this point in the history
  • Loading branch information
gitblit committed Apr 30, 2015
1 parent 23eaf92 commit 3b42113
Show file tree
Hide file tree
Showing 3 changed files with 38 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .classpath
Expand Up @@ -10,7 +10,7 @@
<classpathentry kind="lib" path="ext/derbynet-10.11.1.1.jar" />
<classpathentry kind="lib" path="ext/mysql-connector-java-5.1.33.jar" />
<classpathentry kind="lib" path="ext/postgresql-9.4-1201-jdbc41.jar" sourcepath="ext/src/postgresql-9.4-1201-jdbc41.jar" />
<classpathentry kind="lib" path="ext/sqlite-jdbc-3.8.7.jar" sourcepath="ext/src/sqlite-jdbc-3.8.7.jar" />
<classpathentry kind="lib" path="ext/sqlite-jdbc-3.8.9.jar" />
<classpathentry kind="lib" path="ext/slf4j-api-1.7.12.jar" sourcepath="ext/src/slf4j-api-1.7.12.jar" />
<classpathentry kind="lib" path="ext/commons-pool-1.5.6.jar" sourcepath="ext/src/commons-pool-1.5.6.jar" />
<classpathentry kind="lib" path="ext/commons-dbcp-1.4.jar" sourcepath="ext/src/commons-dbcp-1.4.jar" />
Expand Down
2 changes: 1 addition & 1 deletion build.moxie
Expand Up @@ -87,7 +87,7 @@ properties: {
derby.version : 10.11.1.1
mysql.version : 5.6
postgresql.version : 9.3
sqlite.version : 3.8.7
sqlite.version : 3.8.9
}

dependencies:
Expand Down
39 changes: 36 additions & 3 deletions src/test/java/com/iciql/test/IciqlSuite.java
Expand Up @@ -114,9 +114,42 @@ public class IciqlSuite {
new TestDb("Derby", "tcp", "jdbc:derby://localhost:1527/testdbs/derby/iciql;create=true", "sa", "sa"),
new TestDb("MySQL", "tcp", "jdbc:mysql://localhost:3306/iciql", "sa", "sa"),
new TestDb("PostgreSQL", "tcp", "jdbc:postgresql://localhost:5432/iciql", "sa", "sa"),
new TestDb("SQLite", "memory", "jdbc:sqlite:file:iciql?mode=memory&cache=shared"),
new TestDb("SQLite", "delete,full sync", "jdbc:sqlite:"
+ new File(baseFolder, "/sqlite/iciql.db").getAbsolutePath())

//
// SQLite Memory
//
new TestDb("SQLite", "memory", "jdbc:sqlite:file::memory:?cache=shared&foreign_keys=ON"),

//
// SQLite DELETE rollback journal (default)
//
new TestDb("SQLite", "delete,full_sync", "jdbc:sqlite:"
+ new File(baseFolder, "/sqlite/iciql.db").getAbsolutePath()
+ "?foreign_keys=ON&journal_mode=DELETE&synchronous=FULL"),

new TestDb("SQLite", "delete,norm_sync", "jdbc:sqlite:"
+ new File(baseFolder, "/sqlite/iciql.db").getAbsolutePath()
+ "?foreign_keys=ON&journal_mode=DELETE&synchronous=NORMAL"),

new TestDb("SQLite", "delete,no_sync", "jdbc:sqlite:"
+ new File(baseFolder, "/sqlite/iciql.db").getAbsolutePath()
+ "?foreign_keys=ON&journal_mode=DELETE&synchronous=OFF"),

//
// SQLite WAL
//
new TestDb("SQLite", "wal,full_sync", "jdbc:sqlite:"
+ new File(baseFolder, "/sqlite/iciql.db").getAbsolutePath()
+ "?foreign_keys=ON&journal_mode=WAL&synchronous=FULL"),

new TestDb("SQLite", "wal,norm_sync", "jdbc:sqlite:"
+ new File(baseFolder, "/sqlite/iciql.db").getAbsolutePath()
+ "?foreign_keys=ON&journal_mode=WAL&synchronous=NORMAL"),

new TestDb("SQLite", "wal,no_sync", "jdbc:sqlite:"
+ new File(baseFolder, "/sqlite/iciql.db").getAbsolutePath()
+ "?foreign_keys=ON&journal_mode=WAL&synchronous=OFF"),

};

private static final TestDb DEFAULT_TEST_DB = TEST_DBS[0];
Expand Down

0 comments on commit 3b42113

Please sign in to comment.