Skip to content

Commit c8b6693

Browse files
committed
Added sqlite3 init/data scripts
In preparation for sqlite3 support.
1 parent 4545e4e commit c8b6693

File tree

11 files changed

+3088
-0
lines changed

11 files changed

+3088
-0
lines changed

.github/workflows/build_and_test.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,8 @@ jobs:
3232
--health-retries 5
3333
ports:
3434
- 3310:3306
35+
sqlite3:
36+
image: keinos/sqlite3
3537
steps:
3638
- name: Clone repo
3739
uses: actions/checkout@v2
@@ -47,6 +49,11 @@ jobs:
4749
run: |
4850
mysql -h 127.0.0.1 -P 3310 -D devlab -uroot -proot -e 'source testdata/mysql/init.sql'
4951
mysql -h 127.0.0.1 -P 3310 -D devlab -uroot -proot -e 'source testdata/mysql/data.sql'
52+
- name: load sqlite3 data
53+
run: |
54+
sqlite3 testdata/sqlite3/devlab.sqlite3 '.read testdata/sqlite3/init.sql'
55+
sqlite3 testdata/sqlite3/devlab.sqlite3 '.read testdata/sqlite3/data.sql'
56+
cat testdata/sqlite3/views/*.sql | sqlite3 testdata/sqlite3/devlab.sqlite3
5057
- name: go test ./... -failfast -race -coverprofile=coverage.out
5158
run: go test ./... -failfast -race -coverprofile=coverage.out
5259
- name: Convert coverage.out to coverage.lcov

testdata/sqlite3/data.sql

Lines changed: 2361 additions & 0 deletions
Large diffs are not rendered by default.

testdata/sqlite3/devlab.sqlite3

580 KB
Binary file not shown.

0 commit comments

Comments
 (0)