Function mapPostgresTypeToJsonFormat

  • Maps PostgreSQL data types to corresponding JSON Schema formats.

    Parameters

    • postgresType: string

      The PostgreSQL data type.

    • colName: string

      The column name for potential additional format inference.

    Returns string | undefined

    The JSON Schema format if applicable.