def __call__(self, sql, **keywords):
        """Execute sql query and return results. Optional keyword
        args are '%' substituted into query beforehand."""
        cursor = self.cursor()
        cursor.execute(sql % keywords)
        return RecordSet(
            [list(x) for x in cursor.fetchall()],
            [x[0].lower() for x in cursor.description]
            )
Execute sql query and return results. Optional keyword
        args are '%' substituted into query beforehand.
recipes/Python/66423_LazyDB/recipe-66423.py