Skip to content

Structure

SQLAlterColumnDefinitionType

A clause specifying a new data type to be applied to an existing column.
struct SQLAlterColumnDefinitionType

Overview

This expression is used by modifyColumn(_:type:_:) to abstract over the use of alterColumnDefinitionTypeKeyword in the dialect’s alterTableSyntax. The serialized SQL is of the form:

column alterColumnDefinitionTypeKeyword dataType
-- Given column == SQLIdentifier("col"), dataType == SQLDataTyoe.text:
-- PostgreSQL: "col" SET DATA TYPE TEXT
--      MySQL: `col` TEXT

Users should not use this expression. It is an oversight that it is public API; it will eventually be removed.

Topics

Initializers

Instance Properties

Instance Methods

Relationships

Conforms To

See Also

Clause Expressions