#[non_exhaustive]pub struct OracleCollation { /* private fields */ }Expand description
A resolved Oracle collation description.
Fields are private; use the constructors. Only NLS_SORT=BINARY on an
AL32UTF8 database with VARCHAR2 semantics, and the UCA0700_DUCET /
UCA1210_DUCET collations, are reproducible. Every other Oracle collation
(monolingual, _M, BINARY_CI/BINARY_AI, *_ROOT, *_ORADUCET, the
tailored UCA collations) is refused at construction.
Implementations§
Source§impl OracleCollation
impl OracleCollation
Sourcepub fn uca_ducet(version: OracleUcaVersion) -> Self
pub fn uca_ducet(version: OracleUcaVersion) -> Self
A UCA*_DUCET collation on an AL32UTF8 VARCHAR2.
Sourcepub fn from_nls_sort(
nls_sort: impl Into<String>,
charset: impl Into<String>,
) -> Self
pub fn from_nls_sort( nls_sort: impl Into<String>, charset: impl Into<String>, ) -> Self
Build a description from a raw resolved NLS_SORT name and source
charset. The name is normalized (trimmed, upper-cased). Unknown or
unsupported names are refused at Collation::oracle.
Sourcepub fn with_blank_padded(self, blank_padded: bool) -> Self
pub fn with_blank_padded(self, blank_padded: bool) -> Self
Mark the source as a blank-padded CHAR/NCHAR column.
Blank-padded comparison differs from VARCHAR2 even under the same
collation, so any blank-padded source is refused at construction.
Sourcepub const fn provider(&self) -> OracleProvider
pub const fn provider(&self) -> OracleProvider
The provider.
Sourcepub const fn uca_version(&self) -> Option<OracleUcaVersion>
pub const fn uca_version(&self) -> Option<OracleUcaVersion>
The UCA version, for UCA*_DUCET collations.
Sourcepub const fn blank_padded(&self) -> bool
pub const fn blank_padded(&self) -> bool
Whether the source is blank-padded (CHAR/NCHAR).
Trait Implementations§
Source§impl Clone for OracleCollation
impl Clone for OracleCollation
Source§impl Debug for OracleCollation
impl Debug for OracleCollation
Source§impl<'de> Deserialize<'de> for OracleCollation
Available on crate feature serde only.
impl<'de> Deserialize<'de> for OracleCollation
serde only.Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
impl Eq for OracleCollation
Source§impl Hash for OracleCollation
impl Hash for OracleCollation
Source§impl PartialEq for OracleCollation
impl PartialEq for OracleCollation
Source§impl Serialize for OracleCollation
Available on crate feature serde only.
impl Serialize for OracleCollation
serde only.