[−][src]Struct postgres_types::Type
A Postgres type.
Methods
impl Type
[src]
pub const BOOL: Type
[src][−][−]
BOOL - boolean, 'true'/'false'
pub const BYTEA: Type
[src][−][−]
BYTEA - variable-length string, binary values escaped
pub const CHAR: Type
[src][−][−]
CHAR - single character
pub const NAME: Type
[src][−][−]
NAME - 63-byte type for storing system identifiers
pub const INT8: Type
[src][−][−]
INT8 - ~18 digit integer, 8-byte storage
pub const INT2: Type
[src][−][−]
INT2 - -32 thousand to 32 thousand, 2-byte storage
pub const INT2_VECTOR: Type
[src][−][−]
INT2VECTOR - array of int2, used in system tables
pub const INT4: Type
[src][−][−]
INT4 - -2 billion to 2 billion integer, 4-byte storage
pub const REGPROC: Type
[src][−][−]
REGPROC - registered procedure
pub const TEXT: Type
[src][−][−]
TEXT - variable-length string, no limit specified
pub const OID: Type
[src][−][−]
OID - object identifier(oid), maximum 4 billion
pub const TID: Type
[src][−][−]
TID - (block, offset), physical location of tuple
pub const XID: Type
[src][−][−]
XID - transaction id
pub const CID: Type
[src][−][−]
CID - command identifier type, sequence in transaction id
pub const OID_VECTOR: Type
[src][−][−]
OIDVECTOR - array of oids, used in system tables
pub const PG_DDL_COMMAND: Type
[src][−][−]
PG_DDL_COMMAND - internal type for passing CollectedCommand
pub const JSON: Type
[src][−][−]
JSON - JSON stored as text
pub const XML: Type
[src][−][−]
XML - XML content
pub const XML_ARRAY: Type
[src][−][−]
XML[]
pub const PG_NODE_TREE: Type
[src][−][−]
PG_NODE_TREE - string representing an internal node tree
pub const JSON_ARRAY: Type
[src][−][−]
JSON[]
pub const TABLE_AM_HANDLER: Type
[src][−][−]
TABLE_AM_HANDLER
pub const INDEX_AM_HANDLER: Type
[src][−][−]
INDEX_AM_HANDLER - pseudo-type for the result of an index AM handler function
pub const POINT: Type
[src][−][−]
POINT - geometric point '(x, y)'
pub const LSEG: Type
[src][−][−]
LSEG - geometric line segment '(pt1,pt2)'
pub const PATH: Type
[src][−][−]
PATH - geometric path '(pt1,...)'
pub const BOX: Type
[src][−][−]
BOX - geometric box '(lower left,upper right)'
pub const POLYGON: Type
[src][−][−]
POLYGON - geometric polygon '(pt1,...)'
pub const LINE: Type
[src][−][−]
LINE - geometric line
pub const LINE_ARRAY: Type
[src][−][−]
LINE[]
pub const CIDR: Type
[src][−][−]
CIDR - network IP address/netmask, network address
pub const CIDR_ARRAY: Type
[src][−][−]
CIDR[]
pub const FLOAT4: Type
[src][−][−]
FLOAT4 - single-precision floating point number, 4-byte storage
pub const FLOAT8: Type
[src][−][−]
FLOAT8 - double-precision floating point number, 8-byte storage
pub const UNKNOWN: Type
[src][−][−]
UNKNOWN - pseudo-type representing an undetermined type
pub const CIRCLE: Type
[src][−][−]
CIRCLE - geometric circle '(center,radius)'
pub const CIRCLE_ARRAY: Type
[src][−][−]
CIRCLE[]
pub const MACADDR8: Type
[src][−][−]
MACADDR8 - XX:XX:XX:XX:XX:XX:XX:XX, MAC address
pub const MACADDR8_ARRAY: Type
[src][−][−]
MACADDR8[]
pub const MONEY: Type
[src][−][−]
MONEY - monetary amounts, $d,ddd.cc
pub const MONEY_ARRAY: Type
[src][−][−]
MONEY[]
pub const MACADDR: Type
[src][−][−]
MACADDR - XX:XX:XX:XX:XX:XX, MAC address
pub const INET: Type
[src][−][−]
INET - IP address/netmask, host address, netmask optional
pub const BOOL_ARRAY: Type
[src][−][−]
BOOL[]
pub const BYTEA_ARRAY: Type
[src][−][−]
BYTEA[]
pub const CHAR_ARRAY: Type
[src][−][−]
CHAR[]
pub const NAME_ARRAY: Type
[src][−][−]
NAME[]
pub const INT2_ARRAY: Type
[src][−][−]
INT2[]
pub const INT2_VECTOR_ARRAY: Type
[src][−][−]
INT2VECTOR[]
pub const INT4_ARRAY: Type
[src][−][−]
INT4[]
pub const REGPROC_ARRAY: Type
[src][−][−]
REGPROC[]
pub const TEXT_ARRAY: Type
[src][−][−]
TEXT[]
pub const TID_ARRAY: Type
[src][−][−]
TID[]
pub const XID_ARRAY: Type
[src][−][−]
XID[]
pub const CID_ARRAY: Type
[src][−][−]
CID[]
pub const OID_VECTOR_ARRAY: Type
[src][−][−]
OIDVECTOR[]
pub const BPCHAR_ARRAY: Type
[src][−][−]
BPCHAR[]
pub const VARCHAR_ARRAY: Type
[src][−][−]
VARCHAR[]
pub const INT8_ARRAY: Type
[src][−][−]
INT8[]
pub const POINT_ARRAY: Type
[src][−][−]
POINT[]
pub const LSEG_ARRAY: Type
[src][−][−]
LSEG[]
pub const PATH_ARRAY: Type
[src][−][−]
PATH[]
pub const BOX_ARRAY: Type
[src][−][−]
BOX[]
pub const FLOAT4_ARRAY: Type
[src][−][−]
FLOAT4[]
pub const FLOAT8_ARRAY: Type
[src][−][−]
FLOAT8[]
pub const POLYGON_ARRAY: Type
[src][−][−]
POLYGON[]
pub const OID_ARRAY: Type
[src][−][−]
OID[]
pub const ACLITEM: Type
[src][−][−]
ACLITEM - access control list
pub const ACLITEM_ARRAY: Type
[src][−][−]
ACLITEM[]
pub const MACADDR_ARRAY: Type
[src][−][−]
MACADDR[]
pub const INET_ARRAY: Type
[src][−][−]
INET[]
pub const BPCHAR: Type
[src][−][−]
BPCHAR - char(length), blank-padded string, fixed storage length
pub const VARCHAR: Type
[src][−][−]
VARCHAR - varchar(length), non-blank-padded string, variable storage length
pub const DATE: Type
[src][−][−]
DATE - date
pub const TIME: Type
[src][−][−]
TIME - time of day
pub const TIMESTAMP: Type
[src][−][−]
TIMESTAMP - date and time
pub const TIMESTAMP_ARRAY: Type
[src][−][−]
TIMESTAMP[]
pub const DATE_ARRAY: Type
[src][−][−]
DATE[]
pub const TIME_ARRAY: Type
[src][−][−]
TIME[]
pub const TIMESTAMPTZ: Type
[src][−][−]
TIMESTAMPTZ - date and time with time zone
pub const TIMESTAMPTZ_ARRAY: Type
[src][−][−]
TIMESTAMPTZ[]
pub const INTERVAL: Type
[src][−][−]
INTERVAL - @ <number> <units>, time interval
pub const INTERVAL_ARRAY: Type
[src][−][−]
INTERVAL[]
pub const NUMERIC_ARRAY: Type
[src][−][−]
NUMERIC[]
pub const CSTRING_ARRAY: Type
[src][−][−]
CSTRING[]
pub const TIMETZ: Type
[src][−][−]
TIMETZ - time of day with time zone
pub const TIMETZ_ARRAY: Type
[src][−][−]
TIMETZ[]
pub const BIT: Type
[src][−][−]
BIT - fixed-length bit string
pub const BIT_ARRAY: Type
[src][−][−]
BIT[]
pub const VARBIT: Type
[src][−][−]
VARBIT - variable-length bit string
pub const VARBIT_ARRAY: Type
[src][−][−]
VARBIT[]
pub const NUMERIC: Type
[src][−][−]
NUMERIC - numeric(precision, decimal), arbitrary precision number
pub const REFCURSOR: Type
[src][−][−]
REFCURSOR - reference to cursor (portal name)
pub const REFCURSOR_ARRAY: Type
[src][−][−]
REFCURSOR[]
pub const REGPROCEDURE: Type
[src][−][−]
REGPROCEDURE - registered procedure (with args)
pub const REGOPER: Type
[src][−][−]
REGOPER - registered operator
pub const REGOPERATOR: Type
[src][−][−]
REGOPERATOR - registered operator (with args)
pub const REGCLASS: Type
[src][−][−]
REGCLASS - registered class
pub const REGTYPE: Type
[src][−][−]
REGTYPE - registered type
pub const REGPROCEDURE_ARRAY: Type
[src][−][−]
REGPROCEDURE[]
pub const REGOPER_ARRAY: Type
[src][−][−]
REGOPER[]
pub const REGOPERATOR_ARRAY: Type
[src][−][−]
REGOPERATOR[]
pub const REGCLASS_ARRAY: Type
[src][−][−]
REGCLASS[]
pub const REGTYPE_ARRAY: Type
[src][−][−]
REGTYPE[]
pub const RECORD: Type
[src][−][−]
RECORD - pseudo-type representing any composite type
pub const CSTRING: Type
[src][−][−]
CSTRING - C-style string
pub const ANY: Type
[src][−][−]
ANY - pseudo-type representing any type
pub const ANYARRAY: Type
[src][−][−]
ANYARRAY - pseudo-type representing a polymorphic array type
pub const VOID: Type
[src][−][−]
VOID - pseudo-type for the result of a function with no real result
pub const TRIGGER: Type
[src][−][−]
TRIGGER - pseudo-type for the result of a trigger function
pub const LANGUAGE_HANDLER: Type
[src][−][−]
LANGUAGE_HANDLER - pseudo-type for the result of a language handler function
pub const INTERNAL: Type
[src][−][−]
INTERNAL - pseudo-type representing an internal data structure
pub const OPAQUE: Type
[src][−][−]
OPAQUE - obsolete, deprecated pseudo-type
pub const ANYELEMENT: Type
[src][−][−]
ANYELEMENT - pseudo-type representing a polymorphic base type
pub const RECORD_ARRAY: Type
[src][−][−]
RECORD[]
pub const ANYNONARRAY: Type
[src][−][−]
ANYNONARRAY - pseudo-type representing a polymorphic base type that is not an array
pub const TXID_SNAPSHOT_ARRAY: Type
[src][−][−]
TXID_SNAPSHOT[]
pub const UUID: Type
[src][−][−]
UUID - UUID datatype
pub const UUID_ARRAY: Type
[src][−][−]
UUID[]
pub const TXID_SNAPSHOT: Type
[src][−][−]
TXID_SNAPSHOT - txid snapshot
pub const FDW_HANDLER: Type
[src][−][−]
FDW_HANDLER - pseudo-type for the result of an FDW handler function
pub const PG_LSN: Type
[src][−][−]
PG_LSN - PostgreSQL LSN datatype
pub const PG_LSN_ARRAY: Type
[src][−][−]
PG_LSN[]
pub const TSM_HANDLER: Type
[src][−][−]
TSM_HANDLER - pseudo-type for the result of a tablesample method function
pub const PG_NDISTINCT: Type
[src][−][−]
PG_NDISTINCT - multivariate ndistinct coefficients
pub const PG_DEPENDENCIES: Type
[src][−][−]
PG_DEPENDENCIES - multivariate dependencies
pub const ANYENUM: Type
[src][−][−]
ANYENUM - pseudo-type representing a polymorphic base type that is an enum
pub const TS_VECTOR: Type
[src][−][−]
TSVECTOR - text representation for text search
pub const TSQUERY: Type
[src][−][−]
TSQUERY - query representation for text search
pub const GTS_VECTOR: Type
[src][−][−]
GTSVECTOR - GiST index internal text representation for text search
pub const TS_VECTOR_ARRAY: Type
[src][−][−]
TSVECTOR[]
pub const GTS_VECTOR_ARRAY: Type
[src][−][−]
GTSVECTOR[]
pub const TSQUERY_ARRAY: Type
[src][−][−]
TSQUERY[]
pub const REGCONFIG: Type
[src][−][−]
REGCONFIG - registered text search configuration
pub const REGCONFIG_ARRAY: Type
[src][−][−]
REGCONFIG[]
pub const REGDICTIONARY: Type
[src][−][−]
REGDICTIONARY - registered text search dictionary
pub const REGDICTIONARY_ARRAY: Type
[src][−][−]
REGDICTIONARY[]
pub const JSONB: Type
[src][−][−]
JSONB - Binary JSON
pub const JSONB_ARRAY: Type
[src][−][−]
JSONB[]
pub const ANY_RANGE: Type
[src][−][−]
ANYRANGE - pseudo-type representing a polymorphic base type that is a range
pub const EVENT_TRIGGER: Type
[src][−][−]
EVENT_TRIGGER - pseudo-type for the result of an event trigger function
pub const INT4_RANGE: Type
[src][−][−]
INT4RANGE - range of integers
pub const INT4_RANGE_ARRAY: Type
[src][−][−]
INT4RANGE[]
pub const NUM_RANGE: Type
[src][−][−]
NUMRANGE - range of numerics
pub const NUM_RANGE_ARRAY: Type
[src][−][−]
NUMRANGE[]
pub const TS_RANGE: Type
[src][−][−]
TSRANGE - range of timestamps without time zone
pub const TS_RANGE_ARRAY: Type
[src][−][−]
TSRANGE[]
pub const TSTZ_RANGE: Type
[src][−][−]
TSTZRANGE - range of timestamps with time zone
pub const TSTZ_RANGE_ARRAY: Type
[src][−][−]
TSTZRANGE[]
pub const DATE_RANGE: Type
[src][−][−]
DATERANGE - range of dates
pub const DATE_RANGE_ARRAY: Type
[src][−][−]
DATERANGE[]
pub const INT8_RANGE: Type
[src][−][−]
INT8RANGE - range of bigints
pub const INT8_RANGE_ARRAY: Type
[src][−][−]
INT8RANGE[]
pub const JSONPATH: Type
[src][−][−]
JSONPATH - JSON path
pub const JSONPATH_ARRAY: Type
[src][−][−]
JSONPATH[]
pub const REGNAMESPACE: Type
[src][−][−]
REGNAMESPACE - registered namespace
pub const REGNAMESPACE_ARRAY: Type
[src][−][−]
REGNAMESPACE[]
pub const REGROLE: Type
[src][−][−]
REGROLE - registered role
pub const REGROLE_ARRAY: Type
[src][−][−]
REGROLE[]
pub const PG_MCV_LIST: Type
[src][−][−]
PG_MCV_LIST - multivariate MCV list
impl Type
[src][−]
pub fn new(name: String, oid: Oid, kind: Kind, schema: String) -> Type
[src][−]
Creates a new Type
.
pub fn from_oid(oid: Oid) -> Option<Type>
[src][−]
Returns the Type
corresponding to the provided Oid
if it
corresponds to a built-in type.
pub fn oid(&self) -> Oid
[src][−]
Returns the OID of the Type
.
pub fn kind(&self) -> &Kind
[src][−]
Returns the kind of this type.
pub fn schema(&self) -> &str
[src][−]
Returns the schema of this type.
pub fn name(&self) -> &str
[src][−]
Returns the name of this type.
Trait Implementations
impl Clone for Type
[src][+]
impl Eq for Type
[src]
impl PartialEq<Type> for Type
[src][+]
impl Display for Type
[src][+]
impl Debug for Type
[src][+]
Auto Trait Implementations
impl Send for Type
impl Sync for Type
impl Unpin for Type
impl UnwindSafe for Type
impl RefUnwindSafe for Type
Blanket Implementations
impl<T, U> Into<U> for T where
U: From<T>,
[src][+]
U: From<T>,
impl<T> From<T> for T
[src][+]
impl<T> ToOwned for T where
T: Clone,
[src][+]
T: Clone,
impl<T> ToString for T where
T: Display + ?Sized,
[src][+]
T: Display + ?Sized,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src][+]
U: Into<T>,
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src][+]
U: TryFrom<T>,
impl<T> Borrow<T> for T where
T: ?Sized,
[src][+]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src][+]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src][+]
T: 'static + ?Sized,
impl<T> Same<T> for T
type Output = T
Should always be Self