alembic_migration_fixtures/fixtures.py
def _wipe_db_schema(session: Session, schema: str = "public") -> None:
    """Wipes everything in a database's schema.

    Args:
        session: SQLAlchemy database session to use.
        schema: Name of the database schema which needs to be wiped.
    """
    session.execute(f"DROP SCHEMA IF EXISTS {schema} CASCADE;")
    session.commit()
    session.execute(f"CREATE SCHEMA {schema};")
    session.commit()
Wipes everything in a database's schema.

    Args:
        session: SQLAlchemy database session to use.
        schema: Name of the database schema which needs to be wiped.
    
Wipes everything in a database's schema.
Wipes everything in a database ' s schema .
def _wipe_db_schema(session: Session, schema: str = "public") -> None:
    session.execute(f"DROP SCHEMA IF EXISTS {schema} CASCADE;")
    session.commit()
    session.execute(f"CREATE SCHEMA {schema};")
    session.commit()
def _wipe_db_schema ( session : Session , schema : str = "public" ) -> None : session . execute ( f"DROP SCHEMA IF EXISTS {schema} CASCADE;" ) session . commit ( ) session . execute ( f"CREATE SCHEMA {schema};" ) session . commit ( )
Wipes everything in a database's schema.
Wipes everything in a database ' s schema .
"""Wipes everything in a database's schema.

    Args:
        session: SQLAlchemy database session to use.
        schema: Name of the database schema which needs to be wiped.
    """
session
Session
SQLAlchemy database session to use.
SQLAlchemy database session to use .
schema
str
Name of the database schema which needs to be wiped.
Name of the database schema which needs to be wiped .