Struct Type

Source
pub struct Type(/* private fields */);
Expand description

A Postgres type.

Implementations§

Source§

impl Type

Source

pub const BOOL: Type

BOOL - boolean, 'true'/'false'

Source

pub const BYTEA: Type

BYTEA - variable-length string, binary values escaped

Source

pub const CHAR: Type

CHAR - single character

Source

pub const NAME: Type

NAME - 63-byte type for storing system identifiers

Source

pub const INT8: Type

INT8 - ~18 digit integer, 8-byte storage

Source

pub const INT2: Type

INT2 - -32 thousand to 32 thousand, 2-byte storage

Source

pub const INT2_VECTOR: Type

INT2VECTOR - array of int2, used in system tables

Source

pub const INT4: Type

INT4 - -2 billion to 2 billion integer, 4-byte storage

Source

pub const REGPROC: Type

REGPROC - registered procedure

Source

pub const TEXT: Type

TEXT - variable-length string, no limit specified

Source

pub const OID: Type

OID - object identifier(oid), maximum 4 billion

Source

pub const TID: Type

TID - (block, offset), physical location of tuple

Source

pub const XID: Type

XID - transaction id

Source

pub const CID: Type

CID - command identifier type, sequence in transaction id

Source

pub const OID_VECTOR: Type

OIDVECTOR - array of oids, used in system tables

Source

pub const PG_DDL_COMMAND: Type

PG_DDL_COMMAND - internal type for passing CollectedCommand

Source

pub const JSON: Type

JSON - JSON stored as text

Source

pub const XML: Type

XML - XML content

Source

pub const XML_ARRAY: Type

XML[]

Source

pub const PG_NODE_TREE: Type

PG_NODE_TREE - string representing an internal node tree

Source

pub const JSON_ARRAY: Type

JSON[]

Source

pub const TABLE_AM_HANDLER: Type

TABLE_AM_HANDLER

Source

pub const XID8_ARRAY: Type

XID8[]

Source

pub const INDEX_AM_HANDLER: Type

INDEX_AM_HANDLER - pseudo-type for the result of an index AM handler function

Source

pub const POINT: Type

POINT - geometric point '(x, y)'

Source

pub const LSEG: Type

LSEG - geometric line segment '(pt1,pt2)'

Source

pub const PATH: Type

PATH - geometric path '(pt1,…)'

Source

pub const BOX: Type

BOX - geometric box '(lower left,upper right)'

Source

pub const POLYGON: Type

POLYGON - geometric polygon '(pt1,…)'

Source

pub const LINE: Type

LINE - geometric line

Source

pub const LINE_ARRAY: Type

LINE[]

Source

pub const CIDR: Type

CIDR - network IP address/netmask, network address

Source

pub const CIDR_ARRAY: Type

CIDR[]

Source

pub const FLOAT4: Type

FLOAT4 - single-precision floating point number, 4-byte storage

Source

pub const FLOAT8: Type

FLOAT8 - double-precision floating point number, 8-byte storage

Source

pub const UNKNOWN: Type

UNKNOWN - pseudo-type representing an undetermined type

Source

pub const CIRCLE: Type

CIRCLE - geometric circle '(center,radius)'

Source

pub const CIRCLE_ARRAY: Type

CIRCLE[]

Source

pub const MACADDR8: Type

MACADDR8 - XX:XX:XX:XX:XX:XX:XX:XX, MAC address

Source

pub const MACADDR8_ARRAY: Type

MACADDR8[]

Source

pub const MONEY: Type

MONEY - monetary amounts, $d,ddd.cc

Source

pub const MONEY_ARRAY: Type

MONEY[]

Source

pub const MACADDR: Type

MACADDR - XX:XX:XX:XX:XX:XX, MAC address

Source

pub const INET: Type

INET - IP address/netmask, host address, netmask optional

Source

pub const BOOL_ARRAY: Type

BOOL[]

Source

pub const BYTEA_ARRAY: Type

BYTEA[]

Source

pub const CHAR_ARRAY: Type

CHAR[]

Source

pub const NAME_ARRAY: Type

NAME[]

Source

pub const INT2_ARRAY: Type

INT2[]

Source

pub const INT2_VECTOR_ARRAY: Type

INT2VECTOR[]

Source

pub const INT4_ARRAY: Type

INT4[]

Source

pub const REGPROC_ARRAY: Type

REGPROC[]

Source

pub const TEXT_ARRAY: Type

TEXT[]

Source

pub const TID_ARRAY: Type

TID[]

Source

pub const XID_ARRAY: Type

XID[]

Source

pub const CID_ARRAY: Type

CID[]

Source

pub const OID_VECTOR_ARRAY: Type

OIDVECTOR[]

Source

pub const BPCHAR_ARRAY: Type

BPCHAR[]

Source

pub const VARCHAR_ARRAY: Type

VARCHAR[]

Source

pub const INT8_ARRAY: Type

INT8[]

Source

pub const POINT_ARRAY: Type

POINT[]

Source

pub const LSEG_ARRAY: Type

LSEG[]

Source

pub const PATH_ARRAY: Type

PATH[]

Source

pub const BOX_ARRAY: Type

BOX[]

Source

pub const FLOAT4_ARRAY: Type

FLOAT4[]

Source

pub const FLOAT8_ARRAY: Type

FLOAT8[]

Source

pub const POLYGON_ARRAY: Type

POLYGON[]

Source

pub const OID_ARRAY: Type

OID[]

Source

pub const ACLITEM: Type

ACLITEM - access control list

Source

pub const ACLITEM_ARRAY: Type

ACLITEM[]

Source

pub const MACADDR_ARRAY: Type

MACADDR[]

Source

pub const INET_ARRAY: Type

INET[]

Source

pub const BPCHAR: Type

BPCHAR - char(length), blank-padded string, fixed storage length

Source

pub const VARCHAR: Type

VARCHAR - varchar(length), non-blank-padded string, variable storage length

Source

pub const DATE: Type

DATE - date

Source

pub const TIME: Type

TIME - time of day

Source

pub const TIMESTAMP: Type

TIMESTAMP - date and time

Source

pub const TIMESTAMP_ARRAY: Type

TIMESTAMP[]

Source

pub const DATE_ARRAY: Type

DATE[]

Source

pub const TIME_ARRAY: Type

TIME[]

Source

pub const TIMESTAMPTZ: Type

TIMESTAMPTZ - date and time with time zone

Source

pub const TIMESTAMPTZ_ARRAY: Type

TIMESTAMPTZ[]

Source

pub const INTERVAL: Type

INTERVAL - @ <number> <units>, time interval

Source

pub const INTERVAL_ARRAY: Type

INTERVAL[]

Source

pub const NUMERIC_ARRAY: Type

NUMERIC[]

Source

pub const CSTRING_ARRAY: Type

CSTRING[]

Source

pub const TIMETZ: Type

TIMETZ - time of day with time zone

Source

pub const TIMETZ_ARRAY: Type

TIMETZ[]

Source

pub const BIT: Type

BIT - fixed-length bit string

Source

pub const BIT_ARRAY: Type

BIT[]

Source

pub const VARBIT: Type

VARBIT - variable-length bit string

Source

pub const VARBIT_ARRAY: Type

VARBIT[]

Source

pub const NUMERIC: Type

NUMERIC - numeric(precision, decimal), arbitrary precision number

Source

pub const REFCURSOR: Type

REFCURSOR - reference to cursor (portal name)

Source

pub const REFCURSOR_ARRAY: Type

REFCURSOR[]

Source

pub const REGPROCEDURE: Type

REGPROCEDURE - registered procedure (with args)

Source

pub const REGOPER: Type

REGOPER - registered operator

Source

pub const REGOPERATOR: Type

REGOPERATOR - registered operator (with args)

Source

pub const REGCLASS: Type

REGCLASS - registered class

Source

pub const REGTYPE: Type

REGTYPE - registered type

Source

pub const REGPROCEDURE_ARRAY: Type

REGPROCEDURE[]

Source

pub const REGOPER_ARRAY: Type

REGOPER[]

Source

pub const REGOPERATOR_ARRAY: Type

REGOPERATOR[]

Source

pub const REGCLASS_ARRAY: Type

REGCLASS[]

Source

pub const REGTYPE_ARRAY: Type

REGTYPE[]

Source

pub const RECORD: Type

RECORD - pseudo-type representing any composite type

Source

pub const CSTRING: Type

CSTRING - C-style string

Source

pub const ANY: Type

ANY - pseudo-type representing any type

Source

pub const ANYARRAY: Type

ANYARRAY - pseudo-type representing a polymorphic array type

Source

pub const VOID: Type

VOID - pseudo-type for the result of a function with no real result

Source

pub const TRIGGER: Type

TRIGGER - pseudo-type for the result of a trigger function

Source

pub const LANGUAGE_HANDLER: Type

LANGUAGE_HANDLER - pseudo-type for the result of a language handler function

Source

pub const INTERNAL: Type

INTERNAL - pseudo-type representing an internal data structure

Source

pub const ANYELEMENT: Type

ANYELEMENT - pseudo-type representing a polymorphic base type

Source

pub const RECORD_ARRAY: Type

RECORD[]

Source

pub const ANYNONARRAY: Type

ANYNONARRAY - pseudo-type representing a polymorphic base type that is not an array

Source

pub const TXID_SNAPSHOT_ARRAY: Type

TXID_SNAPSHOT[]

Source

pub const UUID: Type

UUID - UUID datatype

Source

pub const UUID_ARRAY: Type

UUID[]

Source

pub const TXID_SNAPSHOT: Type

TXID_SNAPSHOT - txid snapshot

Source

pub const FDW_HANDLER: Type

FDW_HANDLER - pseudo-type for the result of an FDW handler function

Source

pub const PG_LSN: Type

PG_LSN - PostgreSQL LSN datatype

Source

pub const PG_LSN_ARRAY: Type

PG_LSN[]

Source

pub const TSM_HANDLER: Type

TSM_HANDLER - pseudo-type for the result of a tablesample method function

Source

pub const PG_NDISTINCT: Type

PG_NDISTINCT - multivariate ndistinct coefficients

Source

pub const PG_DEPENDENCIES: Type

PG_DEPENDENCIES - multivariate dependencies

Source

pub const ANYENUM: Type

ANYENUM - pseudo-type representing a polymorphic base type that is an enum

Source

pub const TS_VECTOR: Type

TSVECTOR - text representation for text search

Source

pub const TSQUERY: Type

TSQUERY - query representation for text search

Source

pub const GTS_VECTOR: Type

GTSVECTOR - GiST index internal text representation for text search

Source

pub const TS_VECTOR_ARRAY: Type

TSVECTOR[]

Source

pub const GTS_VECTOR_ARRAY: Type

GTSVECTOR[]

Source

pub const TSQUERY_ARRAY: Type

TSQUERY[]

Source

pub const REGCONFIG: Type

REGCONFIG - registered text search configuration

Source

pub const REGCONFIG_ARRAY: Type

REGCONFIG[]

Source

pub const REGDICTIONARY: Type

REGDICTIONARY - registered text search dictionary

Source

pub const REGDICTIONARY_ARRAY: Type

REGDICTIONARY[]

Source

pub const JSONB: Type

JSONB - Binary JSON

Source

pub const JSONB_ARRAY: Type

JSONB[]

Source

pub const ANY_RANGE: Type

ANYRANGE - pseudo-type representing a range over a polymorphic base type

Source

pub const EVENT_TRIGGER: Type

EVENT_TRIGGER - pseudo-type for the result of an event trigger function

Source

pub const INT4_RANGE: Type

INT4RANGE - range of integers

Source

pub const INT4_RANGE_ARRAY: Type

INT4RANGE[]

Source

pub const NUM_RANGE: Type

NUMRANGE - range of numerics

Source

pub const NUM_RANGE_ARRAY: Type

NUMRANGE[]

Source

pub const TS_RANGE: Type

TSRANGE - range of timestamps without time zone

Source

pub const TS_RANGE_ARRAY: Type

TSRANGE[]

Source

pub const TSTZ_RANGE: Type

TSTZRANGE - range of timestamps with time zone

Source

pub const TSTZ_RANGE_ARRAY: Type

TSTZRANGE[]

Source

pub const DATE_RANGE: Type

DATERANGE - range of dates

Source

pub const DATE_RANGE_ARRAY: Type

DATERANGE[]

Source

pub const INT8_RANGE: Type

INT8RANGE - range of bigints

Source

pub const INT8_RANGE_ARRAY: Type

INT8RANGE[]

Source

pub const JSONPATH: Type

JSONPATH - JSON path

Source

pub const JSONPATH_ARRAY: Type

JSONPATH[]

Source

pub const REGNAMESPACE: Type

REGNAMESPACE - registered namespace

Source

pub const REGNAMESPACE_ARRAY: Type

REGNAMESPACE[]

Source

pub const REGROLE: Type

REGROLE - registered role

Source

pub const REGROLE_ARRAY: Type

REGROLE[]

Source

pub const REGCOLLATION: Type

REGCOLLATION - registered collation

Source

pub const REGCOLLATION_ARRAY: Type

REGCOLLATION[]

Source

pub const INT4MULTI_RANGE: Type

INT4MULTIRANGE - multirange of integers

Source

pub const NUMMULTI_RANGE: Type

NUMMULTIRANGE - multirange of numerics

Source

pub const TSMULTI_RANGE: Type

TSMULTIRANGE - multirange of timestamps without time zone

Source

pub const TSTZMULTI_RANGE: Type

TSTZMULTIRANGE - multirange of timestamps with time zone

Source

pub const DATEMULTI_RANGE: Type

DATEMULTIRANGE - multirange of dates

Source

pub const INT8MULTI_RANGE: Type

INT8MULTIRANGE - multirange of bigints

Source

pub const ANYMULTI_RANGE: Type

ANYMULTIRANGE - pseudo-type representing a polymorphic base type that is a multirange

Source

pub const ANYCOMPATIBLEMULTI_RANGE: Type

ANYCOMPATIBLEMULTIRANGE - pseudo-type representing a multirange over a polymorphic common type

Source

pub const PG_BRIN_BLOOM_SUMMARY: Type

PG_BRIN_BLOOM_SUMMARY - BRIN bloom summary

Source

pub const PG_BRIN_MINMAX_MULTI_SUMMARY: Type

PG_BRIN_MINMAX_MULTI_SUMMARY - BRIN minmax-multi summary

Source

pub const PG_MCV_LIST: Type

PG_MCV_LIST - multivariate MCV list

Source

pub const PG_SNAPSHOT: Type

PG_SNAPSHOT - snapshot

Source

pub const PG_SNAPSHOT_ARRAY: Type

PG_SNAPSHOT[]

Source

pub const XID8: Type

XID8 - full transaction id

Source

pub const ANYCOMPATIBLE: Type

ANYCOMPATIBLE - pseudo-type representing a polymorphic common type

Source

pub const ANYCOMPATIBLEARRAY: Type

ANYCOMPATIBLEARRAY - pseudo-type representing an array of polymorphic common type elements

Source

pub const ANYCOMPATIBLENONARRAY: Type

ANYCOMPATIBLENONARRAY - pseudo-type representing a polymorphic common type that is not an array

Source

pub const ANYCOMPATIBLE_RANGE: Type

ANYCOMPATIBLERANGE - pseudo-type representing a range over a polymorphic common type

Source

pub const INT4MULTI_RANGE_ARRAY: Type

INT4MULTIRANGE[]

Source

pub const NUMMULTI_RANGE_ARRAY: Type

NUMMULTIRANGE[]

Source

pub const TSMULTI_RANGE_ARRAY: Type

TSMULTIRANGE[]

Source

pub const TSTZMULTI_RANGE_ARRAY: Type

TSTZMULTIRANGE[]

Source

pub const DATEMULTI_RANGE_ARRAY: Type

DATEMULTIRANGE[]

Source

pub const INT8MULTI_RANGE_ARRAY: Type

INT8MULTIRANGE[]

Source§

impl Type

Source

pub fn new(name: String, oid: u32, kind: Kind, schema: String) -> Type

Creates a new Type.

Source

pub fn from_oid(oid: u32) -> Option<Type>

Returns the Type corresponding to the provided Oid if it corresponds to a built-in type.

Source

pub fn oid(&self) -> u32

Returns the OID of the Type.

Source

pub fn kind(&self) -> &Kind

Returns the kind of this type.

Source

pub fn schema(&self) -> &str

Returns the schema of this type.

Source

pub fn name(&self) -> &str

Returns the name of this type.

Trait Implementations§

Source§

impl Clone for Type

Source§

fn clone(&self) -> Type

Returns a copy of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for Type

Source§

fn fmt(&self, fmt: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
Source§

impl Display for Type

Source§

fn fmt(&self, fmt: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
Source§

impl Hash for Type

Source§

fn hash<__H>(&self, state: &mut __H)
where __H: Hasher,

Feeds this value into the given Hasher. Read more
1.3.0 · Source§

fn hash_slice<H>(data: &[Self], state: &mut H)
where H: Hasher, Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
Source§

impl PartialEq for Type

Source§

fn eq(&self, other: &Type) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl Eq for Type

Source§

impl StructuralPartialEq for Type

Auto Trait Implementations§

§

impl Freeze for Type

§

impl RefUnwindSafe for Type

§

impl Send for Type

§

impl Sync for Type

§

impl Unpin for Type

§

impl UnwindSafe for Type

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T> ToString for T
where T: Display + ?Sized,

Source§

fn to_string(&self) -> String

Converts the given value to a String. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

Source§

fn vzip(self) -> V

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy