

def _connect(self, database, **kwargs):
    conn = apsw.Connection(database, **kwargs)
    if (self.timeout is not None):
        conn.setbusytimeout(self.timeout)
    try:
        conn._add_conn_hooks(conn)
    except:
        conn.close()
        raise
    return conn

dataset/ETHPy150Open coleifer/peewee/playhouse/apsw_ext.py APSWDatabase._connect/VarMisuse@53/62 `self`->`conn`