class EnumType

A type declared with CREATE TYPE ... AS ENUM.

PostgreSQL enums have an identity independent of the columns using them.

Methods

__construct(string $name, array $values, string|null $schema = null)

Create an enum type definition.

Details

at line 19
__construct(string $name, array $values, string|null $schema = null)

Create an enum type definition.

Parameters

string $name
array $values

labels, in declaration order

string|null $schema