forked from npgsql/npgsql
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathPostgresEnumType.cs
More file actions
27 lines (24 loc) · 790 Bytes
/
PostgresEnumType.cs
File metadata and controls
27 lines (24 loc) · 790 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
using System.Collections.Generic;
namespace Npgsql.PostgresTypes
{
/// <summary>
/// Represents a PostgreSQL enum data type.
/// </summary>
/// <remarks>
/// See https://www.postgresql.org/docs/current/static/datatype-enum.html.
/// </remarks>
public class PostgresEnumType : PostgresType
{
/// <summary>
/// The enum's fields.
/// </summary>
public IReadOnlyList<string> Labels => MutableLabels;
internal List<string> MutableLabels { get; } = new List<string>();
/// <summary>
/// Constructs a representation of a PostgreSQL enum data type.
/// </summary>
protected internal PostgresEnumType(string ns, string name, uint oid)
: base(ns, name, oid)
{}
}
}