Function mapMySqlTypeToJsonFormat

  • Maps MySQL data types to corresponding JSON Schema formats.

    Parameters

    • mysqlType: string

      The MySQL data type.

    • colName: string

      The column name for potential additional format inference.

    Returns string | undefined

    The JSON Schema format if applicable.