aboutsummaryrefslogtreecommitdiff
path: root/src/test/resources
diff options
context:
space:
mode:
authorGravatar Vitaly Takmazov2023-01-29 05:44:21 +0300
committerGravatar Vitaly Takmazov2023-01-30 23:49:25 +0300
commitf8a7d417cb916b81cfa685175f3e6afbe6063cee (patch)
tree3f6923f3f32540e8506ce5b43b610460b4c67559 /src/test/resources
parentdd23559a978da8980675ad4089948ade9bbc323d (diff)
SQLite support
Diffstat (limited to 'src/test/resources')
-rw-r--r--src/test/resources/application-sqlite.yml11
-rw-r--r--src/test/resources/data-mysql.sql13
2 files changed, 11 insertions, 13 deletions
diff --git a/src/test/resources/application-sqlite.yml b/src/test/resources/application-sqlite.yml
new file mode 100644
index 00000000..6a838f13
--- /dev/null
+++ b/src/test/resources/application-sqlite.yml
@@ -0,0 +1,11 @@
+spring:
+ datasource:
+ maxActive: 1
+ type: org.springframework.jdbc.datasource.SimpleDriverDataSource
+ url: jdbc:sqlite:data.db
+ sql:
+ init:
+ separator: ;;
+ platform: sqlite
+ mode: always
+
diff --git a/src/test/resources/data-mysql.sql b/src/test/resources/data-mysql.sql
deleted file mode 100644
index a5db173a..00000000
--- a/src/test/resources/data-mysql.sql
+++ /dev/null
@@ -1,13 +0,0 @@
-INSERT INTO users(id, nick, passw) VALUES(0, 'Anonymous', 'password');
-INSERT INTO users(id, nick, passw) VALUES(2, 'juick', 'password');
-INSERT INTO users(id, nick, passw) VALUES(5, 'archive', 'password');
-INSERT INTO tags(tag_id, name) VALUES(2, 'juick');
-ALTER TABLE tags AUTO_INCREMENT = 10;
-ALTER TABLE users AUTO_INCREMENT = 10;
-INSERT INTO reactions (like_id, description) VALUES (1, 'like');
-INSERT INTO reactions (like_id, description) VALUES (2, 'love');
-INSERT INTO reactions (like_id, description) VALUES (3, 'lol');
-INSERT INTO reactions (like_id, description) VALUES (4, 'hmm');
-INSERT INTO reactions (like_id, description) VALUES (5, 'angry');
-INSERT INTO reactions (like_id, description) VALUES (6, 'uhblya');
-INSERT INTO reactions (like_id, description) VALUES (7, 'ugh');