forked from prisma/prisma-engines
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
77 lines (57 loc) · 2.12 KB
/
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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
default: build
build:
cargo build
# Build the crates with deny-warnings on to emulate CI
pedantic:
RUSTFLAGS="-D warnings" cargo build
release:
cargo build --release
all-dbs:
docker-compose -f docker-compose.yml up -d --remove-orphans
dev-sqlite:
echo 'sqlite' > current_connector
dev-postgres9:
docker-compose -f docker-compose.yml up -d --remove-orphans postgres9
echo 'postgres9' > current_connector
dev-postgres10:
docker-compose -f docker-compose.yml up -d --remove-orphans postgres10
echo 'postgres10' > current_connector
dev-postgres11:
docker-compose -f docker-compose.yml up -d --remove-orphans postgres11
echo 'postgres11' > current_connector
dev-postgres12:
docker-compose -f docker-compose.yml up -d --remove-orphans postgres12
echo 'postgres12' > current_connector
dev-postgres13:
docker-compose -f docker-compose.yml up -d --remove-orphans postgres13
echo 'postgres13' > current_connector
dev-pgbouncer:
docker-compose -f docker-compose.yml up -d --remove-orphans pgbouncer postgres11
echo 'pgbouncer' > current_connector
dev-mysql:
docker-compose -f docker-compose.yml up -d --remove-orphans mysql-5-7
echo 'mysql' > current_connector
dev-mysql_5_6:
docker-compose -f docker-compose.yml up -d --remove-orphans mysql-5-6
echo 'mysql56' > current_connector
dev-mysql8:
docker-compose -f docker-compose.yml up -d --remove-orphans mysql-8-0
echo 'mysql8' > current_connector
dev-mariadb:
docker-compose -f docker-compose.yml up -d --remove-orphans mariadb-10-0
echo 'mariadb' > current_connector
dev-mssql2019:
docker-compose -f docker-compose.yml up -d --remove-orphans mssql-2019
echo 'mssql2019' > current_connector
dev-mssql2017:
docker-compose -f docker-compose.yml up -d --remove-orphans mssql-2017
echo 'mssql2017' > current_connector
dev-down:
docker-compose -f docker-compose.yml down -v --remove-orphans
use-local-migration-engine:
cargo build --release
cp target/release/migration-engine $(PRISMA2_BINARY_PATH)/
use-local-query-engine:
cargo build --release
cp target/release/query-engine $(PRISMA2_BINARY_PATH)/runtime/
cp target/release/query-engine $(PRISMA2_BINARY_PATH)/query-engine-darwin