def METHOD_NAME(name: str) -> db.Integration:
    company_id = ctx.company_id
    if company_id is None:
        company_id = null()
    record = (
        db.session.query(db.Integration)
        .filter_by(company_id=company_id, name=name)
        .first()
    )
    return record