forked from prisma/prisma-engines
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.envrc
42 lines (36 loc) · 1.71 KB
/
.envrc
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
### General env vars ###
export WORKSPACE_ROOT=$(pwd)
export RUST_LOG_FORMAT=devel
export RUST_BACKTRACE=1
export RUST_LOG=query_engine_tests=trace,query_engine=debug,query_core=trace,query_connector=debug,sql_query_connector=debug,prisma_models=debug,engineer=info,sql_introspection_connector=debug,tiberius=trace,quaint=debug,mongodb_query_connector=trace
### Various local dev env vars ###
export PRISMA_DML_PATH=$(pwd)/dev_datamodel.prisma
export PRISMA2_BINARY_PATH="/usr/local/lib/node_modules/prisma2/"
export PRISMA_BINARY_PATH=$(pwd)/target/release/query-engine
### QE config vars, set to testing values ###
export SQLITE_MAX_VARIABLE_NUMBER=250000 # This must be in sync with the setting in the engineer build CLI
export QUERY_BATCH_SIZE=10 # Max size of IN statement vars.
export CLOSED_TX_CLEANUP=2 # Time in seconds when a closed interactive transaction will be removed from the cache.
### QE test setup vars ###
export LOG_LEVEL=trace
export SIMPLE_TEST_MODE="yes" # Reduces the amount of generated `relation_link_test` tests. Remove the export entirely to disable it.
# Mongo image requires additional wait time on arm arch for some reason.
if uname -a | grep -q 'arm64'; then
export INIT_WAIT_SEC="10"
else
export INIT_WAIT_SEC="2"
fi
# (Example env vars if you're not using the make commands, i.e. the config files, to set up tests)
# export TEST_RUNNER="direct"
# export TEST_CONNECTOR="postgres"
# export TEST_CONNECTOR_VERSION="10"
# Set up env vars and build inputs from shell.nix / flake.nix automatically for
# nix users. If you don't use nix, you can safely ignore this.
if command -v nix-shell &> /dev/null
then
if nix flake metadata > /dev/null; then
use flake
else
use nix
fi
fi