Module: Column

Column metadata object.
Source:

Methods

getCharacterSetName() → {string}

Retrieve the name of the charset being used.
Source:
Returns:
Type
string

getCollationName() → {string}

Retrieve the name of the collation being used.
Source:
Returns:
Type
string

getColumnLabel() → {string}

Retrieve the alias of the column.
Source:
Returns:
Type
string

getColumnName() → {string}

Retrieve the actual name of the column.
Source:
Returns:
Type
string

getFractionalDigits() → {number}

Retrieve the number of fractional digits allowed for the column (DECIMAL or similar types).
Source:
Returns:
Type
number

getLength() → {number}

Retrieve the allowed size of the column.
Source:
Returns:
Type
number

getSchemaName() → {string}

Retrieve the name of the schema where the table belongs to.
Source:
Returns:
Type
string

getTableLabel() → {string}

Retrieve the alias of the table where the column belongs to.
Source:
Returns:
Type
string

getTableName() → {string}

Retrieve the actual name of the table where the column belongs to.
Source:
Returns:
Type
string

getType() → {number}

Retrieve the SQL type of the column.
Source:
Returns:
Type
number

isNumberSigned() → {boolean}

Check if the column value is signed or not (for INT or similar types).
Source:
Returns:
Type
boolean

isPadded() → {string}

Check if the column value is being padded.
Source:
Returns:
Type
string