from app.connection import Connection


class SampleDao:
    def __init__(self):
        self.connection = Connection()

    def get_all_users(self) -> list:
        cursor = self.connection.cursor
        cursor.execute("SELECT * FROM users")
        users = cursor.fetchall()
        cursor.close()
        return users
