Trait diesel::pg::GetPgMetadataCache

source ·
pub trait GetPgMetadataCache {
    // Required method
    fn get_metadata_cache(&mut self) -> &mut PgMetadataCache;
}
Available on crate features postgres_backend and i-implement-a-third-party-backend-and-opt-into-breaking-changes only.
Expand description

Gets the PgMetadataCache for a Connection<Backend=Pg> so that the lookup of user defined types, or types which come from an extension can be cached.

Implementing this trait for a Connection<Backend=Pg> will cause PgMetadataLookup to be auto implemented.

Required Methods§

source

fn get_metadata_cache(&mut self) -> &mut PgMetadataCache

Get the PgMetadataCache

Implementors§

source§

impl GetPgMetadataCache for PgConnection

Available on crate feature postgres only.