pub trait BoxableConnection<DB: Backend>: SimpleConnection + Any { }
Expand description

A variant of the Connection trait that is usable with dynamic dispatch

If you are looking for a way to use pass database connections for different database backends around in your application this trait won’t help you much. Normally you should only need to use this trait if you are interacting with a connection passed to a Migration

Implementations

Downcast the current connection to a specific connection type.

This will return None if the underlying connection does not match the corresponding type, otherwise a reference to the underlying connection is returned

Downcast the current connection to a specific mutable connection type.

This will return None if the underlying connection does not match the corresponding type, otherwise a mutable reference to the underlying connection is returned

Check if the current connection is a specific connection type

Implementors