File tree Expand file tree Collapse file tree 2 files changed +3
-0
lines changed Expand file tree Collapse file tree 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 =
4545 process . env . PG_META_GENERATE_TYPES_DEFAULT_SCHEMA || 'public'
4646export const GENERATE_TYPES_DETECT_ONE_TO_ONE_RELATIONSHIPS =
4747 process . env . PG_META_GENERATE_TYPES_DETECT_ONE_TO_ONE_RELATIONSHIPS === 'true'
48+ export const POSTGREST_VERSION = process . env . PG_META_POSTGREST_VERSION
4849export const GENERATE_TYPES_SWIFT_ACCESS_CONTROL = process . env
4950 . PG_META_GENERATE_TYPES_SWIFT_ACCESS_CONTROL
5051 ? ( 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 {
1313 PG_CONNECTION ,
1414 PG_META_HOST ,
1515 PG_META_PORT ,
16+ POSTGREST_VERSION ,
1617} from './constants.js'
1718import { apply as applyTypescriptTemplate } from './templates/typescript.js'
1819import { apply as applyGoTemplate } from './templates/go.js'
@@ -129,6 +130,7 @@ async function getTypeOutput(): Promise<string | null> {
129130 ) ,
130131 types : types ! ,
131132 detectOneToOneRelationships : GENERATE_TYPES_DETECT_ONE_TO_ONE_RELATIONSHIPS ,
133+ postgresVersion : POSTGREST_VERSION ,
132134 }
133135
134136 switch ( GENERATE_TYPES ?. toLowerCase ( ) ) {
You can’t perform that action at this time.
0 commit comments