aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.classpath2
-rw-r--r--build.moxie2
-rw-r--r--src/test/java/com/iciql/test/IciqlSuite.java39
3 files changed, 38 insertions, 5 deletions
diff --git a/.classpath b/.classpath
index 0c11f59..7447974 100644
--- a/.classpath
+++ b/.classpath
@@ -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" />
diff --git a/build.moxie b/build.moxie
index f823f1d..34940ad 100644
--- a/build.moxie
+++ b/build.moxie
@@ -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:
diff --git a/src/test/java/com/iciql/test/IciqlSuite.java b/src/test/java/com/iciql/test/IciqlSuite.java
index 19b3d60..f30caf6 100644
--- a/src/test/java/com/iciql/test/IciqlSuite.java
+++ b/src/test/java/com/iciql/test/IciqlSuite.java
@@ -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];