Struct diesel::pg::PgMetadataLookup [−][src]
pub struct PgMetadataLookup { /* fields omitted */ }
Determines the OID of types at runtime
Methods
impl PgMetadataLookup
[src]
impl PgMetadataLookup
pub fn lookup_type(&self, type_name: &str) -> PgTypeMetadata
[src]
pub fn lookup_type(&self, type_name: &str) -> PgTypeMetadata
Determine the type metadata for the given type_name
This function should only be used for user defined types, or types which come from an extension. This function may perform a SQL query to look up the type. For built-in types, a static OID should be preferred.
Auto Trait Implementations
impl Send for PgMetadataLookup
impl Send for PgMetadataLookup
impl !Sync for PgMetadataLookup
impl !Sync for PgMetadataLookup