Options
All
  • Public
  • Public/Protected
  • All
Menu

Class MySQLDataTypeMapper

Maps from MySQL data types to JavaScript types.

Hierarchy

  • MySQLDataTypeMapper

Index

Methods

Methods

Static getJSType

  • getJSType(dataType: string, columnType: string): string
  • Given the data type and column type of a column return the analogous JS type.

    Parameters

    • dataType: string

      The raw type in MySQL, e.g. tinyint, from INFORMATION_SCHEMA.COLUMNS.

    • columnType: string

      The column type, e.g., tinyint(1), from MySQL's INFORMATION_SCHEMA.COLUMNS.

    Returns string

Generated using TypeDoc