Struct sea_orm::ProxyDatabaseConnector
source · pub struct ProxyDatabaseConnector;Expand description
Defines a database driver for the [ProxyDatabase]
Implementations§
source§impl ProxyDatabaseConnector
impl ProxyDatabaseConnector
sourcepub fn accepts(string: &str) -> bool
pub fn accepts(string: &str) -> bool
Check if the database URI given and the DatabaseBackend selected are the same
sourcepub fn connect(
db_type: DbBackend,
func: Arc<Mutex<Box<dyn ProxyDatabaseTrait>>>
) -> Result<DatabaseConnection, DbErr>
pub fn connect( db_type: DbBackend, func: Arc<Mutex<Box<dyn ProxyDatabaseTrait>>> ) -> Result<DatabaseConnection, DbErr>
Connect to the [ProxyDatabase]
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ProxyDatabaseConnector
impl RefUnwindSafe for ProxyDatabaseConnector
impl Send for ProxyDatabaseConnector
impl Sync for ProxyDatabaseConnector
impl Unpin for ProxyDatabaseConnector
impl UnwindSafe for ProxyDatabaseConnector
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