pub fn name(&self) -> &'static str {
        // postgres_types' `name()` uses the pg_catalog name, and not the pretty
        // SQL standard name.
        match self.inner() {
            &postgres_types::Type::BOOL_ARRAY => "boolean[]",
            &postgres_types::Type::BYTEA_ARRAY => "bytea[]",
            &postgres_types::Type::BPCHAR_ARRAY => "character[]",
            &postgres_types::Type::DATE_ARRAY => "date[]",
            &postgres_types::Type::FLOAT4_ARRAY => "real[]",
            &postgres_types::Type::FLOAT8_ARRAY => "double precision[]",
            &postgres_types::Type::INT2_ARRAY => "smallint[]",
            &postgres_types::Type::INT4_ARRAY => "integer[]",
            &postgres_types::Type::INT8_ARRAY => "bigint[]",
            &postgres_types::Type::INTERVAL_ARRAY => "interval[]",
            &postgres_types::Type::JSONB_ARRAY => "jsonb[]",
            &postgres_types::Type::NUMERIC_ARRAY => "numeric[]",
            &postgres_types::Type::OID_ARRAY => "oid[]",
            &postgres_types::Type::RECORD_ARRAY => "record[]",
            &postgres_types::Type::TEXT_ARRAY => "text[]",
            &postgres_types::Type::TIME_ARRAY => "time[]",
            &postgres_types::Type::TIMESTAMP_ARRAY => "timestamp[]",
            &postgres_types::Type::TIMESTAMPTZ_ARRAY => "timestamp with time zone[]",
            &postgres_types::Type::UUID_ARRAY => "uuid[]",
            &postgres_types::Type::VARCHAR_ARRAY => "character varying[]",
            &postgres_types::Type::BOOL => "boolean",
            &postgres_types::Type::BPCHAR => "character",
            &postgres_types::Type::FLOAT4 => "real",
            &postgres_types::Type::FLOAT8 => "double precision",
            &postgres_types::Type::INT2 => "smallint",
            &postgres_types::Type::INT4 => "integer",
            &postgres_types::Type::INT8 => "bigint",
            &postgres_types::Type::TIMESTAMPTZ => "timestamp with time zone",
            &postgres_types::Type::VARCHAR => "character varying",
            &postgres_types::Type::REGCLASS_ARRAY => "regclass[]",
            &postgres_types::Type::REGPROC_ARRAY => "regproc[]",
            &postgres_types::Type::REGTYPE_ARRAY => "regtype[]",
            other => other.name(),
        }
    }
/// Returns the name that PostgreSQL uses for this type.
Returns the name that PostgreSQL uses for this type.
Returns the name that PostgreSQL uses for this type .
pub fn name(&self) -> &'static str {
        // postgres_types' `name()` uses the pg_catalog name, and not the pretty
        // SQL standard name.
        match self.inner() {
            &postgres_types::Type::BOOL_ARRAY => "boolean[]",
            &postgres_types::Type::BYTEA_ARRAY => "bytea[]",
            &postgres_types::Type::BPCHAR_ARRAY => "character[]",
            &postgres_types::Type::DATE_ARRAY => "date[]",
            &postgres_types::Type::FLOAT4_ARRAY => "real[]",
            &postgres_types::Type::FLOAT8_ARRAY => "double precision[]",
            &postgres_types::Type::INT2_ARRAY => "smallint[]",
            &postgres_types::Type::INT4_ARRAY => "integer[]",
            &postgres_types::Type::INT8_ARRAY => "bigint[]",
            &postgres_types::Type::INTERVAL_ARRAY => "interval[]",
            &postgres_types::Type::JSONB_ARRAY => "jsonb[]",
            &postgres_types::Type::NUMERIC_ARRAY => "numeric[]",
            &postgres_types::Type::OID_ARRAY => "oid[]",
            &postgres_types::Type::RECORD_ARRAY => "record[]",
            &postgres_types::Type::TEXT_ARRAY => "text[]",
            &postgres_types::Type::TIME_ARRAY => "time[]",
            &postgres_types::Type::TIMESTAMP_ARRAY => "timestamp[]",
            &postgres_types::Type::TIMESTAMPTZ_ARRAY => "timestamp with time zone[]",
            &postgres_types::Type::UUID_ARRAY => "uuid[]",
            &postgres_types::Type::VARCHAR_ARRAY => "character varying[]",
            &postgres_types::Type::BOOL => "boolean",
            &postgres_types::Type::BPCHAR => "character",
            &postgres_types::Type::FLOAT4 => "real",
            &postgres_types::Type::FLOAT8 => "double precision",
            &postgres_types::Type::INT2 => "smallint",
            &postgres_types::Type::INT4 => "integer",
            &postgres_types::Type::INT8 => "bigint",
            &postgres_types::Type::TIMESTAMPTZ => "timestamp with time zone",
            &postgres_types::Type::VARCHAR => "character varying",
            &postgres_types::Type::REGCLASS_ARRAY => "regclass[]",
            &postgres_types::Type::REGPROC_ARRAY => "regproc[]",
            &postgres_types::Type::REGTYPE_ARRAY => "regtype[]",
            other => other.name(),
        }
    }
pub fn name ( & self ) -> & ' static str { // postgres_types' `name()` uses the pg_catalog name, and not the pretty // SQL standard name. match self . inner ( ) { & postgres_types :: Type :: BOOL_ARRAY => " " , & postgres_types :: Type :: BYTEA_ARRAY => " " , & postgres_types :: Type :: BPCHAR_ARRAY => " " , & postgres_types :: Type :: DATE_ARRAY => " " , & postgres_types :: Type :: FLOAT4_ARRAY => " " , & postgres_types :: Type :: FLOAT8_ARRAY => " " , & postgres_types :: Type :: INT2_ARRAY => " " , & postgres_types :: Type :: INT4_ARRAY => " " , & postgres_types :: Type :: INT8_ARRAY => " " , & postgres_types :: Type :: INTERVAL_ARRAY => " " , & postgres_types :: Type :: JSONB_ARRAY => " " , & postgres_types :: Type :: NUMERIC_ARRAY => " " , & postgres_types :: Type :: OID_ARRAY => " " , & postgres_types :: Type :: RECORD_ARRAY => " " , & postgres_types :: Type :: TEXT_ARRAY => " " , & postgres_types :: Type :: TIME_ARRAY => " " , & postgres_types :: Type :: TIMESTAMP_ARRAY => " " , & postgres_types :: Type :: TIMESTAMPTZ_ARRAY => " " , & postgres_types :: Type :: UUID_ARRAY => " " , & postgres_types :: Type :: VARCHAR_ARRAY => " " , & postgres_types :: Type :: BOOL => " " , & postgres_types :: Type :: BPCHAR => " " , & postgres_types :: Type :: FLOAT4 => " " , & postgres_types :: Type :: FLOAT8 => " " , & postgres_types :: Type :: INT2 => " " , & postgres_types :: Type :: INT4 => " " , & postgres_types :: Type :: INT8 => " " , & postgres_types :: Type :: TIMESTAMPTZ => " " , & postgres_types :: Type :: VARCHAR => " " , & postgres_types :: Type :: REGCLASS_ARRAY => " " , & postgres_types :: Type :: REGPROC_ARRAY => " " , & postgres_types :: Type :: REGTYPE_ARRAY => " " , other => other . name ( ) , } }
Returns the name that PostgreSQL uses for this type.
Returns the name that PostgreSQL uses for this type .
&self