def __init__(self, name, aggregate_class=None, join_transaction=True, autocommit=False): if aggregate_class is None: aggregate_class = NoSqlAggregate Repository.__init__(self, name, aggregate_class, join_transaction=join_transaction, autocommit=autocommit) self.__db = None self.__logger = get_logger('everest.repositories')
def __init__(self, name, aggregate_class=None, join_transaction=False, autocommit=False): if aggregate_class is None: aggregate_class = MemoryAggregate Repository.__init__(self, name, aggregate_class, join_transaction=join_transaction, autocommit=autocommit) self.__cache_mgr = EntityCacheManager(self) # By default, we do not use a cache loader. self.configure(cache_loader=None)
def __init__(self, name, aggregate_class=None, autoflush=True, join_transaction=True, autocommit=False): """ :param autoflush: Sets the `autoflush` attribute. """ if aggregate_class is None: aggregate_class = RdbAggregate Repository.__init__(self, name, aggregate_class, join_transaction=join_transaction, autocommit=autocommit) #: Flag indicating if changes should be flushed to the treansaction #: automatically. self.autoflush = autoflush # Default to an in-memory sqlite DB. self.configure(db_string="sqlite://", metadata_factory=empty_metadata)
def __init__(self, name, aggregate_class=None, autoflush=True, join_transaction=True, autocommit=False): """ :param autoflush: Sets the `autoflush` attribute. """ if aggregate_class is None: aggregate_class = RdbAggregate Repository.__init__(self, name, aggregate_class, join_transaction=join_transaction, autocommit=autocommit) #: Flag indicating if changes should be flushed to the treansaction #: automatically. self.autoflush = autoflush # Default to an in-memory sqlite DB. self.configure(db_string='sqlite://', metadata_factory=empty_metadata)