diff options
author | Vitaly Takmazov | 2024-01-31 16:50:01 +0300 |
---|---|---|
committer | Vitaly Takmazov | 2024-02-01 19:18:13 +0300 |
commit | 5ef424120ed694b1f69daeafaa1454455d13dee2 (patch) | |
tree | 72c0e5cedcdb5420f2760856c6e762cedf31c6de /src/test/resources | |
parent | 3cf580867600494615a7bdc9ab43ef0735d5aedb (diff) |
CI: enable SQLite
* SQLite JDBC driver does not support generated keys feature. So we implement `returningId` helper
* only one connection should be used from connection pooler
* changes made to prevent connection locking
Diffstat (limited to 'src/test/resources')
-rw-r--r-- | src/test/resources/application-sqlite.yml | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/test/resources/application-sqlite.yml b/src/test/resources/application-sqlite.yml index 6a9c0516..9ffa0833 100644 --- a/src/test/resources/application-sqlite.yml +++ b/src/test/resources/application-sqlite.yml @@ -1,8 +1,9 @@ spring: datasource: - maxActive: 1 - type: org.springframework.jdbc.datasource.SimpleDriverDataSource - url: jdbc:sqlite:data.db + hikari: + maximumPoolSize: 1 + connectionTimeout: 3000 + url: jdbc:sqlite:data.db?journal_mode=WAL sql: init: platform: sqlite |