pub enum AnyPool {
Postgresql(Pool<Postgres>),
Sqlite(Pool<Sqlite>),
Any(AnyPool),
}Variants§
Implementations§
Source§impl AnyPool
impl AnyPool
pub async fn connect( database_type: &GeneratorType, connection_string: &str, ) -> Result<Self, SchemaInstallerError>
pub async fn execute_sql(&self, sql: &str) -> Result<(), SchemaInstallerError>
pub async fn ensure_migration_table( &self, database_type: &GeneratorType, ) -> Result<(), SchemaInstallerError>
pub async fn get_applied_migrations( &self, ) -> Result<Vec<AppliedMigration>, SchemaInstallerError>
pub async fn insert_migration( &self, version: &str, script_path: &str, checksum: &str, execution_time_ms: i64, status: &str, tool_version: &str, ) -> Result<i64, SchemaInstallerError>
pub async fn update_migration_status( &self, id: i64, status: &str, execution_time_ms: i64, ) -> Result<(), SchemaInstallerError>
pub async fn delete_failed_migrations(&self) -> Result<(), SchemaInstallerError>
pub async fn update_migration_checksum( &self, id: i64, checksum: &str, ) -> Result<(), SchemaInstallerError>
Auto Trait Implementations§
impl !RefUnwindSafe for AnyPool
impl !UnwindSafe for AnyPool
impl Freeze for AnyPool
impl Send for AnyPool
impl Sync for AnyPool
impl Unpin for AnyPool
impl UnsafeUnpin for AnyPool
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
impl<T> ErasedDestructor for Twhere
T: 'static,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more