Struct ColumnInfo
A struct to hold column metadata
struct ColumnInfo
;
Fields
Name | Type | Description |
---|---|---|
charSet
|
string | Character set, " |
charsMax
|
long | Capacity in characters, -1L if not applicable |
collation
|
string | Collation, " |
colType
|
string | More detail about the column type, e.g. "int(10) unsigned". |
comment
|
string | Any comment that was set at table definition time. |
defaultNull
|
bool | Is the COLUMN_DEFAULT column (in the information schema's COLUMNS table) NULL? |
defaultValue
|
string | The default value as a string if not NULL. |
extra
|
string | Extra information. |
index
|
ulong | Zero based index of the column within a table row. |
key
|
string | Information about the column's key status, blank if none. |
name
|
string | The name of the column. |
nullable
|
bool | Can the column value be set to NULL |
numericPrecision
|
short | Presentation information for numerics, -1L if not applicable. |
numericScale
|
short | Scale information for numerics or NULL, -1L if not applicable. |
octetsMax
|
long | Capacity in bytes - same as chars if not a unicode table definition, -1L if not applicable. |
privileges
|
string | Privileges for logged in user. |
schema
|
string | The database that the table having this column belongs to. |
table
|
string | The table that this column belongs to. |
type
|
string | What type is the column - tinyint, char, varchar, blob, date etc |