modpydb.py fortsättning.. if string.upper(string.split(sql)[0]) in ("SELECT", "SHOW", "DESC", "DESCRIBE"): if n: recset = cur.fetchmany(n) else: recset = cur.fetchall() if with_desc: return recset, cur.description else: return recset else: return rc def insert_id(): """ Get the insert ID of the last insert """ db = _db_login() return db._db.insert_id() En databasöppning per apacheprocess. Databaskopplet återanvänds