pub struct MultiWaypoint {
pub databases: Vec<NamedDatabaseConfig>,
}Expand description
Multi-database orchestration entry point.
Fields§
§databases: Vec<NamedDatabaseConfig>List of all database configurations to orchestrate.
Implementations§
Source§impl MultiWaypoint
impl MultiWaypoint
Sourcepub fn execution_order(databases: &[NamedDatabaseConfig]) -> Result<Vec<String>>
pub fn execution_order(databases: &[NamedDatabaseConfig]) -> Result<Vec<String>>
Determine execution order based on depends_on relationships (Kahn’s algorithm).
Uses borrowed &str references internally to avoid cloning database names
during the topological sort; only clones into owned Strings for the output.
Sourcepub async fn connect(
databases: &[NamedDatabaseConfig],
filter: Option<&str>,
) -> Result<HashMap<String, DbClient>>
pub async fn connect( databases: &[NamedDatabaseConfig], filter: Option<&str>, ) -> Result<HashMap<String, DbClient>>
Connect to all databases (or a filtered subset). The engine for each database is auto-detected from the URL scheme — mixed PG/MySQL configs are fully supported here.
Sourcepub async fn migrate(
databases: &[NamedDatabaseConfig],
clients: &HashMap<String, DbClient>,
order: &[String],
target_version: Option<&str>,
fail_fast: bool,
) -> Result<MultiResult>
pub async fn migrate( databases: &[NamedDatabaseConfig], clients: &HashMap<String, DbClient>, order: &[String], target_version: Option<&str>, fail_fast: bool, ) -> Result<MultiResult>
Run migrate on all databases in dependency order.
Sourcepub async fn migrate_with_options(
databases: &[NamedDatabaseConfig],
clients: &HashMap<String, DbClient>,
order: &[String],
target_version: Option<&str>,
fail_fast: bool,
force: bool,
) -> Result<MultiResult>
pub async fn migrate_with_options( databases: &[NamedDatabaseConfig], clients: &HashMap<String, DbClient>, order: &[String], target_version: Option<&str>, fail_fast: bool, force: bool, ) -> Result<MultiResult>
Run migrate on all databases in dependency order with the force
flag for overriding DANGER safety verdicts on PostgreSQL.
Auto Trait Implementations§
impl Freeze for MultiWaypoint
impl RefUnwindSafe for MultiWaypoint
impl Send for MultiWaypoint
impl Sync for MultiWaypoint
impl Unpin for MultiWaypoint
impl UnsafeUnpin for MultiWaypoint
impl UnwindSafe for MultiWaypoint
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