(self, db, sql, args)
return res
Run regular query SQL on db.
Run regular query SQL on db.
Run regular query SQL on db .
def exec_query(self, db, sql, args):
        """Run regular query SQL on db."""
        self.log.debug("exec_query: %s" % skytools.quote_statement(sql, args))
        curs = db.cursor()
        curs.execute(sql, args)
        res = curs.fetchall()
        db.commit()
        return res
def exec_query ( self , db , sql , args ) : self . log . debug ( "exec_query: %s" % skytools . quote_statement ( sql , args ) ) curs = db . cursor ( ) curs . execute ( sql , args ) res = curs . fetchall ( ) db . commit ( ) return res