

def __init__(self, database, threadlocals=True, autocommit=True, fields=None, ops=None, autorollback=False, use_speedups=True, **connect_kwargs):
    self.connect_kwargs = {
        
    }
    if threadlocals:
        self.__local = _ConnectionLocal()
    else:
        self.__local = _BaseConnectionLocal()
    self.init(database, **connect_kwargs)
    self._conn_lock = threading.Lock()
    self.autocommit = autocommit
    self.autorollback = autorollback
    self.use_speedups = use_speedups
    self.field_overrides = merge_dict(self.field_overrides, (fields or {
        
    }))
    self.op_overrides = merge_dict(self.op_overrides, (ops or {
        
    }))

dataset/ETHPy150Open coleifer/peewee/peewee.py Database.__init__/original