/// <summary> /// Constructs a representation of a PostgreSQL domain data type. /// </summary> protected internal PostgresDomainType(string ns, string name, uint oid, PostgresType baseType) : base(ns, name, oid) { BaseType = baseType; }
/// <summary> /// Constructs a representation of a PostgreSQL array data type. /// </summary> protected internal PostgresArrayType(string ns, string internalName, uint oid, PostgresType elementPostgresType) : base(ns, elementPostgresType.Name + "[]", internalName, oid) { Debug.Assert(internalName == '_' + elementPostgresType.InternalName); Element = elementPostgresType; Element.Array = this; }
/// <summary> /// Constructs a representation of a PostgreSQL range data type. /// </summary> protected internal PostgresRangeType(string ns, string name, uint oid, PostgresType subtypePostgresType) : base(ns, name, oid) { Subtype = subtypePostgresType; Subtype.Range = this; }
/// <summary> /// Constructs a representation of a PostgreSQL domain data type. /// </summary> protected internal PostgresDomainType(string ns, string name, uint oid, PostgresType baseType, bool notNull) : base(ns, name, oid) { BaseType = baseType; NotNull = notNull; }
internal Field(string name, PostgresType type) { Name = name; Type = type; }