Skip to content

Structure

SQLAlterEnum

An expression representing an ALTER TYPE query. Used to add new cases to enumeration types.
struct SQLAlterEnum

Overview

ALTER TYPE "name" ADD VALUE 'value';

This expression does not check whether the current dialect supports separate enumeration types; users should take care not to use it with incompatible drivers.

See SQLAlterEnumBuilder.

Note

Despite both its name and the query it represents, this expression can neither perform arbitrary enum alterations, nor represent the full range of possible ALTER TYPE queries, even in dialects which support them in the first place. This would probably have been better named something like SQLAddEnumCase.

Topics

Instance Properties

Instance Methods

Relationships

Conforms To

See Also

Query Expressions

  • struct SQLAlterTable
    An expression representing an ALTER TABLE query. Used to modify the structure of existing tables.
  • struct SQLCreateEnum
    An expression representing a CREATE TYPE query. Used to create enumeration types.
  • struct SQLCreateIndex
    An expression representing a CREATE INDEX query. Used to add indexes over columns to an existing table.
  • struct SQLCreateTable
    An expression representing a CREATE TABLE query. Used to create new tables.
  • struct SQLCreateTrigger
    An expression representing a CREATE TRIGGER query. Used to create new triggers for actions on a table.
  • struct SQLDelete
    An expression representing a CREATE TRIGGER query. Used to remove rows from a table.
  • struct SQLDropEnum
    An expression representing a DROP TYPE query. Used to delete enumeration types.
  • struct SQLDropIndex
    An expression representing a DROP INDEX query. Used to delete indexes from tables.
  • struct SQLDropTable
    An expression representing a DROP TABLE query. Used to delete entire tables.
  • struct SQLDropTrigger
    An expression representing a DROP TRIGGER query. Used to delete triggers.
  • struct SQLInsert
    An expression representing an INSERT query. Used to add new rows to a table.
  • struct SQLSelect
    An expression representing a SELECT query. Used to retrieve rows and expression results from a database.
  • struct SQLUnion
    An expression representing two or more SELECT queries joined by UNION clauses. Used to merge the results of multiple queries into a single result set.
  • struct SQLUpdate
    An expression representing an UPDATE query. Used to modify existing rows in a single table.