Skip to content

Commit 3b3ea92

Browse files
authored
Merge branch 'master' into feat/add-functions-setof-type-introspection
2 parents f12ea45 + 4ca46f3 commit 3b3ea92

File tree

4 files changed

+9
-4
lines changed

4 files changed

+9
-4
lines changed

Diff for: .github/workflows/release.yml

+2
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@ jobs:
1313
outputs:
1414
new-release-published: ${{ steps.semantic-release.outputs.new_release_published }}
1515
new-release-version: ${{ steps.semantic-release.outputs.new_release_version }}
16+
permissions:
17+
contents: write
1618
steps:
1719
- uses: actions/checkout@v4
1820

Diff for: README.md

+1
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,7 @@ PG_META_DB_PASSWORD="postgres"
8585

8686
Then run any of the binaries in the releases.
8787

88+
8889
## FAQs
8990

9091
**Why?**

Diff for: package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,8 @@
3030
"test": "run-s db:clean db:run test:run db:clean",
3131
"db:clean": "cd test/db && docker compose down",
3232
"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"
3535
},
3636
"engines": {
3737
"node": ">=20",

Diff for: src/server/constants.ts

+4-2
Original file line numberDiff line numberDiff line change
@@ -49,8 +49,10 @@ export const GENERATE_TYPES_SWIFT_ACCESS_CONTROL = process.env
4949
? (process.env.PG_META_GENERATE_TYPES_SWIFT_ACCESS_CONTROL as AccessControl)
5050
: 'internal'
5151

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
5456
: 2 * 1024 * 1024 * 1024 // default to 2GB max query size result
5557

5658
export const DEFAULT_POOL_CONFIG: PoolConfig = {

0 commit comments

Comments
 (0)