Skip to content

Roles

roles

SQLAlchemy role adapter implementation.

Provides database operations for role-based access control using SQLAlchemy/SQLModel.

Classes

SQLAlchemyRoleAdapter

SQLAlchemyRoleAdapter(session: Session)

Bases: RoleAdapter

SQLAlchemy implementation of RoleAdapter for RBAC database operations.

Source code in fastauth/adapters/sqlalchemy/roles.py
def __init__(self, session: Session):
    self.session = session