using System.Collections.Generic;
using Npgsql.Internal.Postgres;
namespace Npgsql.PostgresTypes;
///
/// Represents a PostgreSQL enum data type.
///
///
/// See https://www.postgresql.org/docs/current/static/datatype-enum.html.
///
public class PostgresEnumType : PostgresType
{
///
/// The enum's fields.
///
public IReadOnlyList Labels => MutableLabels;
internal List MutableLabels { get; } = [];
///
/// Constructs a representation of a PostgreSQL enum data type.
///
protected internal PostgresEnumType(string ns, string name, uint oid)
: base(ns, name, oid) {}
///
/// Constructs a representation of a PostgreSQL enum data type.
///
internal PostgresEnumType(DataTypeName dataTypeName, Oid oid)
: base(dataTypeName, oid) {}
}