ColumnInfo

parasql.schema. ColumnInfo

A parasql.schema.ColumnInfo object describes the attributes of a column in a DataTable.

Constructor

new ColumnInfo()

License:

Extends

  • Object

Methods

getColumnName() → {string}

Returns:
Type
string

getDatatype() → {string}

Returns:

Returns one of the following: varchar, char, enum, text, int, bigint, float, double, decimal boolean, date, time, datetime, timestamp.

Type
string

getIsPrimaryKeyMember() → {boolean}

Returns:

true if this column is part of the table's primary key.

Type
boolean

getIsRequired() → {boolean}

Returns:
Type
boolean

getTableName() → {string}

Returns:
Type
string

isAutoKey() → {boolean}

Since:
  • v65
Returns:

Returns true if this column is of subtype AUTOKEY; AUTOKEY columns should always have a datatype of bigint.

Type
boolean

isPrimaryKey() → {boolean}

Returns:

true if this column is part of the table's primary key.

Type
boolean

setAutoKey()

Sets this column with datatype of bigint, subtype of AUTOKEY, and Primary Key Member of true.

Description:
  • Sets this column with datatype of bigint, subtype of AUTOKEY, and Primary Key Member of true.

Since:
  • v65

setPrimaryKeyMember(flag)

Parameters:
Name Type Description
flag boolean

Designate this column as part of the table's primary key.