def insertmany(self, table, values):
        """
        @brief      Insert many rows in table
        @param      table  String
        @param      values  Array of tuple
        """
        c = self.conn.cursor()
        self.lock.acquire()
        n = len(values[0])
        sql = ("INSERT INTO %s VALUES (" + ",".join(['?'] * n) + ");") % table
        Log.debug('DB -> %s' % sql)

        try:
            c.executemany(sql, values)
        except Exception, e:
            Log.error(traceback.format_exc())
        finally:
            self.lock.release()

        self.conn.commit()

        @brief      Insert many rows in table
        @param      table  String
        @param      values  Array of tuple
        
wxbot_project_py2.7/db/sqlite_db.py