pub struct DataSources(/* private fields */);Implementations§
Source§impl DataSources
impl DataSources
pub fn with_default(conn: DatabaseConnection) -> Self
pub fn new(map: HashMap<Arc<str>, DatabaseConnection>) -> Self
pub fn get(&self, name: &str) -> Option<&DataSource>
pub fn standalone(&self) -> Self
pub async fn commit_all(&self) -> Result<(), Error>
pub async fn rollback_all(&self) -> Result<(), Error>
Trait Implementations§
Source§impl Debug for DataSources
impl Debug for DataSources
Source§impl DefaultProvider for DataSources
impl DefaultProvider for DataSources
Auto Trait Implementations§
impl Freeze for DataSources
impl !RefUnwindSafe for DataSources
impl Send for DataSources
impl Sync for DataSources
impl Unpin for DataSources
impl !UnwindSafe for DataSources
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