def METHOD_NAME(self) -> Optional[str]:
    with self.connect() as conn:
        row = conn.execute(db.text("select version()")).fetchone()
    if not row:
        return None
    return cast(str, row[0])