pub enum DbInstance {
Local {
_arc: Arc<Postgres>,
url: Url,
},
External {
url: Url,
superuser_url: Url,
cleanup: bool,
},
}Expand description
A database instance.
Can be either a local database (with a reference to the running instance) or an external database URL. Dropping the instance will cause the database to be deleted.
Variants§
Local
A local database instance that will be kept alive as long as this DbUrl exists.
Fields
External
An external database URL with admin credentials to clean it up later.
Implementations§
Trait Implementations§
Source§impl AsRef<str> for DbInstance
impl AsRef<str> for DbInstance
Source§impl Debug for DbInstance
impl Debug for DbInstance
Source§impl Drop for DbInstance
impl Drop for DbInstance
Auto Trait Implementations§
impl Freeze for DbInstance
impl RefUnwindSafe for DbInstance
impl Send for DbInstance
impl Sync for DbInstance
impl Unpin for DbInstance
impl UnsafeUnpin for DbInstance
impl UnwindSafe for DbInstance
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