示例#1
0
 /// <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;
 }
示例#2
0
 /// <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;
 }
示例#3
0
 /// <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;
 }
示例#4
0
 /// <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;
 }
示例#5
0
 internal Field(string name, PostgresType type)
 {
     Name = name;
     Type = type;
 }