-
Notifications
You must be signed in to change notification settings - Fork 7
/
Makefile
39 lines (26 loc) · 925 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
SHELL = /bin/bash
DIR=$(shell pwd)
init:
echo "init"
echo "Git branch: $GITBRANCH"
test:
cd $(DIR); cargo test --workspace -- --test-threads=4
fmt:
cd $(DIR); cargo fmt -- --check
check-cargo-toml:
cd $(DIR); cargo sort --workspace --check
check-license:
cd $(DIR); sh scripts/check-license.sh
clippy:
cd $(DIR); cargo clippy --all-targets --all-features --workspace -- -D warnings
cli-test:
cd $(DIR)/sqlness-cli; cargo run -- -t mysql -c tests/mysql -i 127.0.0.1 -p 3306 -u root -P 1a2b3c -d public
cd $(DIR)/sqlness-cli; cargo run -- -t postgresql -c tests/postgresql -i 127.0.0.1 -p 5432 -u postgres -P postgres -d postgres
basic-example:
cd $(DIR)/sqlness; cargo run --example basic
interceptor-example:
cd $(DIR)/sqlness; cargo run --example interceptor
bad-example:
cd $(DIR)/sqlness; cargo run --example bad
good-example: basic-example interceptor-example
example: good-example bad-example