Skip to content
# Interface: TypeTransformationConfig

Defined in: packages/core/src/transformers/TypeTransformationPostProcessor.ts:6

Post-processor for transforming database values to appropriate TypeScript types after JSON serialization from PostgreSQL

Properties

columnTransformations?

optional columnTransformations: object

Defined in: packages/core/src/transformers/TypeTransformationPostProcessor.ts:8

Column transformations mapping - takes precedence over value-based detection

Index Signature

[columnName: string]: TypeTransformation


globalTransformations?

optional globalTransformations: object

Defined in: packages/core/src/transformers/TypeTransformationPostProcessor.ts:12

Global transformation rules by SQL data type

Index Signature

[sqlType: string]: TypeTransformation


customTransformers?

optional customTransformers: object

Defined in: packages/core/src/transformers/TypeTransformationPostProcessor.ts:16

Custom transformation functions

Index Signature

[transformerName: string]: (value) => unknown


enableValueBasedDetection?

optional enableValueBasedDetection: boolean

Defined in: packages/core/src/transformers/TypeTransformationPostProcessor.ts:20

Enable value-based type detection when column mapping is not provided (default: true)


strictDateDetection?

optional strictDateDetection: boolean

Defined in: packages/core/src/transformers/TypeTransformationPostProcessor.ts:22

Strict date detection - only convert ISO 8601 with 'T' separator (default: false)

Released under the MIT License.