File tree 4 files changed +9
-4
lines changed
4 files changed +9
-4
lines changed Original file line number Diff line number Diff line change 13
13
outputs :
14
14
new-release-published : ${{ steps.semantic-release.outputs.new_release_published }}
15
15
new-release-version : ${{ steps.semantic-release.outputs.new_release_version }}
16
+ permissions :
17
+ contents : write
16
18
steps :
17
19
- uses : actions/checkout@v4
18
20
Original file line number Diff line number Diff line change @@ -85,6 +85,7 @@ PG_META_DB_PASSWORD="postgres"
85
85
86
86
Then run any of the binaries in the releases.
87
87
88
+
88
89
## FAQs
89
90
90
91
** Why?**
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