Please enable JavaScript.
Coggle requires JavaScript to display documents.
Unit Test, DataStore (class DataStore; Used to get the path of our local…
Unit Test
DataStore
class DataStore; Used to get the path of our local datastore
getResourceStore:(restype: ResourceType)
getCopiesStore
getNotificationStore
getResourceFlagstore
RecordStoreType(Enum): resources, copies.
SQLiteDB
SqlDb: setSchema, create,connect,disconnect,selectSet,select, insert, update, selectset, updatecolumn,
Resources
(self, recordOffset: int, theId: str, created: int,updated: int, deleted: int, resType: ResourceType,subType: str, resource, opaque):
addOnToRes(resType: ResourceType, addOnRecord: {}, extraInfo: {}):
Resource._getResCreateFunc(resType)(addOnRecord, created, extraInfo)
If restype is App systems: _createAppSysRes
_createAppSysRes: similar
if restpye is assets: _createAssetRes
_createAssetRes: Similar
If resType is Addon: _createAddonRes
_caerteAddonRes: converts the results by adding or deleting required fields
ResourceStore(RecordStore):
_getResourceStoreTableSchema():
This is where the table name and schema is formed into a dictionary using the recordstore constructor and the resourcetype.value.
SQLitedb is the wrapper on the abstract database calss SqlDb.py