Struct diesel::pg::PgMetadataCache
source · pub struct PgMetadataCache { /* private fields */ }
Expand description
Cache for the OIDs of custom Postgres types
Implementations§
source§impl PgMetadataCache
impl PgMetadataCache
sourcepub fn lookup_type(
&self,
type_name: &PgMetadataCacheKey<'_>
) -> Option<PgTypeMetadata>
pub fn lookup_type( &self, type_name: &PgMetadataCacheKey<'_> ) -> Option<PgTypeMetadata>
Lookup the OID of a custom type
sourcepub fn store_type(
&mut self,
type_name: PgMetadataCacheKey<'_>,
type_metadata: impl Into<InnerPgTypeMetadata>
)
pub fn store_type( &mut self, type_name: PgMetadataCacheKey<'_>, type_metadata: impl Into<InnerPgTypeMetadata> )
Store the OID of a custom type
Trait Implementations§
source§impl Default for PgMetadataCache
impl Default for PgMetadataCache
source§fn default() -> PgMetadataCache
fn default() -> PgMetadataCache
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl RefUnwindSafe for PgMetadataCache
impl Send for PgMetadataCache
impl Sync for PgMetadataCache
impl Unpin for PgMetadataCache
impl UnwindSafe for PgMetadataCache
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§impl<T> IntoSql for T
impl<T> IntoSql for T
source§fn into_sql<T>(self) -> AsExprOf<Self, T>where
Self: AsExpression<T> + Sized,
T: SqlType + TypedExpressionType,
fn into_sql<T>(self) -> AsExprOf<Self, T>where Self: AsExpression<T> + Sized, T: SqlType + TypedExpressionType,
Convert
self
to an expression for Diesel’s query builder. Read moresource§fn as_sql<'a, T>(&'a self) -> AsExprOf<&'a Self, T>where
&'a Self: AsExpression<T>,
T: SqlType + TypedExpressionType,
fn as_sql<'a, T>(&'a self) -> AsExprOf<&'a Self, T>where &'a Self: AsExpression<T>, T: SqlType + TypedExpressionType,
Convert
&self
to an expression for Diesel’s query builder. Read more