Ejemplo n.º 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;
 }
Ejemplo n.º 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;
 }
Ejemplo n.º 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;
 }
Ejemplo n.º 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;
 }
Ejemplo n.º 5
0
 internal Field(string name, PostgresType type)
 {
     Name = name;
     Type = type;
 }