Checks if the specified column exists in the table and validates its data type and length.
checkColumn(
tableName: string,
columnName: string,
columnType: string | string[],
columnLength: number
): Promise<void>| Name | Type | Description |
|---|---|---|
tableName* | string | The name of the table. |
columnName* | string | The name of the column to check. |
columnType* | string | string[] | The expected data type(s) of the column. |
columnLength | number | The expected length of the column. Optional. |