def select ( self , cmd , * args , * * kwargs ) : self . cursor . execute ( cmd , * args , * * kwargs ) return self . cursor . fetchall ( )
execute(query, arg) cursor python
Execute the SQL command and return the data rows as tuples
def select(self, cmd, *args, **kwargs):
        """ Execute the SQL command and return the data rows as tuples
        """
        self.cursor.execute(cmd, *args, **kwargs)
        return self.cursor.fetchall()