Migra_engine.DatabaseSourceReplace the password in a connection URL with a fixed ***** mask for safe display (does not reveal the password length).
Connect to database using connection string. Returns a single connection (use for one-off operations or transactions).
Build connection URL for admin database (dialect-aware). Used for creating/dropping databases.
Create database if it doesn't exist (dialect-aware). For SQLite: Database file created on first connection. For PostgreSQL/MariaDB: Uses admin database to execute CREATE DATABASE.
Drop database if it exists (dialect-aware). For SQLite: Deletes the database file. For PostgreSQL/MariaDB: Uses admin database to execute DROP DATABASE.