Skip to main content
Version: 4.4

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:1835


alter#

alter(): ColumnBuilder

Returns: ColumnBuilder

Inherited from: AlterColumnBuilder

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


comment#

comment(value: string): ColumnBuilder

Parameters:#

NameType
valuestring

Returns: ColumnBuilder

Inherited from: AlterColumnBuilder

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


defaultTo#

defaultTo(value: Value): ColumnBuilder

Parameters:#

NameType
valueValue

Returns: ColumnBuilder

Inherited from: AlterColumnBuilder

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


first#

first(): AlterColumnBuilder

Returns: AlterColumnBuilder

Overrides: AlterColumnBuilder

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


index#

index(indexName?: string): ColumnBuilder

Parameters:#

NameType
indexName?string

Returns: ColumnBuilder

Inherited from: AlterColumnBuilder

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


notNullable#

notNullable(): ColumnBuilder

Returns: ColumnBuilder

Inherited from: AlterColumnBuilder

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


nullable#

nullable(): ColumnBuilder

Returns: ColumnBuilder

Inherited from: AlterColumnBuilder

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


onDelete#

onDelete(command: string): ColumnBuilder

Parameters:#

NameType
commandstring

Returns: ColumnBuilder

Inherited from: AlterColumnBuilder

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


onUpdate#

onUpdate(command: string): ColumnBuilder

Parameters:#

NameType
commandstring

Returns: ColumnBuilder

Inherited from: AlterColumnBuilder

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


primary#

primary(constraintName?: string): ColumnBuilder

Parameters:#

NameType
constraintName?string

Returns: ColumnBuilder

Inherited from: AlterColumnBuilder

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


queryContext#

queryContext(context: any): ColumnBuilder

Parameters:#

NameType
contextany

Returns: ColumnBuilder

Inherited from: AlterColumnBuilder

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


references#

references(columnName: string): ReferencingColumnBuilder

Parameters:#

NameType
columnNamestring

Returns: ReferencingColumnBuilder

Inherited from: AlterColumnBuilder

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


unique#

unique(indexName?: string): ColumnBuilder

Parameters:#

NameType
indexName?string

Returns: ColumnBuilder

Inherited from: AlterColumnBuilder

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


unsigned#

unsigned(): ColumnBuilder

Returns: ColumnBuilder

Inherited from: AlterColumnBuilder

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


withKeyName#

withKeyName(keyName: string): ColumnBuilder

Parameters:#

NameType
keyNamestring

Returns: ColumnBuilder

Inherited from: AlterColumnBuilder

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

Last updated on by Martin Adámek