Trait diesel::pg::GetPgMetadataCache

source ·
pub trait GetPgMetadataCache {
    // Required method
    fn get_metadata_cache(&mut self) -> &mut PgMetadataCache;
}
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§