Skip to main content
Version: 4.5

Interface: MySqlAlterColumnBuilder#

knex.Knex.MySqlAlterColumnBuilder

Hierarchy#

Methods#

after#

after(columnName: string): AlterColumnBuilder

Parameters:#

NameType
columnNamestring

Returns: AlterColumnBuilder

Overrides: AlterColumnBuilder

Defined in: node_modules/knex/types/index.d.ts:1841


alter#

alter(): ColumnBuilder

Returns: ColumnBuilder

Inherited from: AlterColumnBuilder

Defined in: node_modules/knex/types/index.d.ts:1814


comment#

comment(value: string): ColumnBuilder

Parameters:#

NameType
valuestring

Returns: ColumnBuilder

Inherited from: AlterColumnBuilder

Defined in: node_modules/knex/types/index.d.ts:1813


defaultTo#

defaultTo(value: Value): ColumnBuilder

Parameters:#

NameType
valueValue

Returns: ColumnBuilder

Inherited from: AlterColumnBuilder

Defined in: node_modules/knex/types/index.d.ts:1809


first#

first(): AlterColumnBuilder

Returns: AlterColumnBuilder

Overrides: AlterColumnBuilder

Defined in: node_modules/knex/types/index.d.ts:1840


index#

index(indexName?: string): ColumnBuilder

Parameters:#

NameType
indexName?string

Returns: ColumnBuilder

Inherited from: AlterColumnBuilder

Defined in: node_modules/knex/types/index.d.ts:1803


notNullable#

notNullable(): ColumnBuilder

Returns: ColumnBuilder

Inherited from: AlterColumnBuilder

Defined in: node_modules/knex/types/index.d.ts:1811


nullable#

nullable(): ColumnBuilder

Returns: ColumnBuilder

Inherited from: AlterColumnBuilder

Defined in: node_modules/knex/types/index.d.ts:1812


onDelete#

onDelete(command: string): ColumnBuilder

Parameters:#

NameType
commandstring

Returns: ColumnBuilder

Inherited from: AlterColumnBuilder

Defined in: node_modules/knex/types/index.d.ts:1807


onUpdate#

onUpdate(command: string): ColumnBuilder

Parameters:#

NameType
commandstring

Returns: ColumnBuilder

Inherited from: AlterColumnBuilder

Defined in: node_modules/knex/types/index.d.ts:1808


primary#

primary(constraintName?: string): ColumnBuilder

Parameters:#

NameType
constraintName?string

Returns: ColumnBuilder

Inherited from: AlterColumnBuilder

Defined in: node_modules/knex/types/index.d.ts:1804


queryContext#

queryContext(context: any): ColumnBuilder

Parameters:#

NameType
contextany

Returns: ColumnBuilder

Inherited from: AlterColumnBuilder

Defined in: node_modules/knex/types/index.d.ts:1815


references#

references(columnName: string): ReferencingColumnBuilder

Parameters:#

NameType
columnNamestring

Returns: ReferencingColumnBuilder

Inherited from: AlterColumnBuilder

Defined in: node_modules/knex/types/index.d.ts:1806


unique#

unique(indexName?: string): ColumnBuilder

Parameters:#

NameType
indexName?string

Returns: ColumnBuilder

Inherited from: AlterColumnBuilder

Defined in: node_modules/knex/types/index.d.ts:1805


unsigned#

unsigned(): ColumnBuilder

Returns: ColumnBuilder

Inherited from: AlterColumnBuilder

Defined in: node_modules/knex/types/index.d.ts:1810


withKeyName#

withKeyName(keyName: string): ColumnBuilder

Parameters:#

NameType
keyNamestring

Returns: ColumnBuilder

Inherited from: AlterColumnBuilder

Defined in: node_modules/knex/types/index.d.ts:1816

Last updated on by Martin Adámek