db.engines#

aio_postgresql_engine(url: URL, migrate: bool = True, echo: bool = False) AsyncEngine#
aio_sqlite_engine(url: URL, migrate: bool = True, echo: bool = False, shared_cache: bool = True) AsyncEngine#
create_engine(connection_str: str, migrate: bool = True, echo: bool = False) AsyncEngine#

Factory to create a SQLAlchemy engine from a URL string.

get_async_db_url(connection_str: str) URL#

Parses the database URL string and returns a URL object that is async

get_printable_db_url(connection_str: str) str#
set_sqlite_pragma(connection: Connection, _: Any) None#