File tree 2 files changed +3
-0
lines changed 2 files changed +3
-0
lines changed Original file line number Diff line number Diff line change @@ -45,6 +45,7 @@ export const GENERATE_TYPES_DEFAULT_SCHEMA =
45
45
process . env . PG_META_GENERATE_TYPES_DEFAULT_SCHEMA || 'public'
46
46
export const GENERATE_TYPES_DETECT_ONE_TO_ONE_RELATIONSHIPS =
47
47
process . env . PG_META_GENERATE_TYPES_DETECT_ONE_TO_ONE_RELATIONSHIPS === 'true'
48
+ export const POSTGREST_VERSION = process . env . PG_META_POSTGREST_VERSION
48
49
export const GENERATE_TYPES_SWIFT_ACCESS_CONTROL = process . env
49
50
. PG_META_GENERATE_TYPES_SWIFT_ACCESS_CONTROL
50
51
? ( process . env . PG_META_GENERATE_TYPES_SWIFT_ACCESS_CONTROL as AccessControl )
Original file line number Diff line number Diff line change @@ -13,6 +13,7 @@ import {
13
13
PG_CONNECTION ,
14
14
PG_META_HOST ,
15
15
PG_META_PORT ,
16
+ POSTGREST_VERSION ,
16
17
} from './constants.js'
17
18
import { apply as applyTypescriptTemplate } from './templates/typescript.js'
18
19
import { apply as applyGoTemplate } from './templates/go.js'
@@ -129,6 +130,7 @@ async function getTypeOutput(): Promise<string | null> {
129
130
) ,
130
131
types : types ! ,
131
132
detectOneToOneRelationships : GENERATE_TYPES_DETECT_ONE_TO_ONE_RELATIONSHIPS ,
133
+ postgresVersion : POSTGREST_VERSION ,
132
134
}
133
135
134
136
switch ( GENERATE_TYPES ?. toLowerCase ( ) ) {
You can’t perform that action at this time.
0 commit comments