Coverage for /home/runner/work/viur-core/viur-core/viur/src/viur/core/db.py: 78%

7 statements  

« prev     ^ index     » next       coverage.py v7.6.1, created at 2024-09-03 13:41 +0000

1import importlib 

2from viur.core.config import conf 

3 

4if conf.db_engine == "viur.datastore": 4 ↛ 7line 4 didn't jump to line 7 because the condition on line 4 was always true

5 from viur.datastore import * 

6else: 

7 globals().update(importlib.import_module(conf.db_engine).__dict__) 

8 

9KeyClass = Key 

10 

11__all__ = [KEY_SPECIAL_PROPERTY, DATASTORE_BASE_TYPES, SortOrder, Entity, Key, KeyClass, Put, Get, Delete, AllocateIDs, 

12 CollisionError, keyHelper, fixUnindexableProperties, GetOrInsert, Query, QueryDefinition, IsInTransaction, 

13 acquireTransactionSuccessMarker, RunInTransaction, config, startDataAccessLog, endDataAccessLog, Count, 

14 cache]