File tree 2 files changed +6
-4
lines changed
2 files changed +6
-4
lines changed Original file line number Diff line number Diff line change 30
30
"test" : " run-s db:clean db:run test:run db:clean" ,
31
31
"db:clean" : " cd test/db && docker compose down" ,
32
32
"db:run" : " cd test/db && docker compose up --detach --wait" ,
33
- "test:run" : " PG_META_MAX_RESULT_SIZE=20971520 vitest run --coverage" ,
34
- "test:update" : " run-s db:clean db:run && PG_META_MAX_RESULT_SIZE=20971520 vitest run --update && run-s db:clean"
33
+ "test:run" : " PG_META_MAX_RESULT_SIZE_MB=20 vitest run --coverage" ,
34
+ "test:update" : " run-s db:clean db:run && PG_META_MAX_RESULT_SIZE_MB=20 vitest run --update && run-s db:clean"
35
35
},
36
36
"engines" : {
37
37
"node" : " >=20" ,
Original file line number Diff line number Diff line change @@ -49,8 +49,10 @@ export const GENERATE_TYPES_SWIFT_ACCESS_CONTROL = process.env
49
49
? ( process . env . PG_META_GENERATE_TYPES_SWIFT_ACCESS_CONTROL as AccessControl )
50
50
: 'internal'
51
51
52
- export const PG_META_MAX_RESULT_SIZE = process . env . PG_META_MAX_RESULT_SIZE
53
- ? parseInt ( process . env . PG_META_MAX_RESULT_SIZE , 10 )
52
+ export const PG_META_MAX_RESULT_SIZE = process . env . PG_META_MAX_RESULT_SIZE_MB
53
+ ? // Node-postgres get a maximum size in bytes make the conversion from the env variable
54
+ // from MB to Bytes
55
+ parseInt ( process . env . PG_META_MAX_RESULT_SIZE_MB , 10 ) * 1024 * 1024
54
56
: 2 * 1024 * 1024 * 1024 // default to 2GB max query size result
55
57
56
58
export const DEFAULT_POOL_CONFIG : PoolConfig = {
You can’t perform that action at this time.
0 commit comments