LoaderWrapper¶
- class data_base.isf_data_base.LoaderWrapper(relpath)¶
- This is a pointer to data, which is stored elsewhere. - It is used by ISFDataBase, if data is stored in a subfolder of the data_base.basedir folder. It is not used, if the data is stored directly in the sqlite database. - The process of storing data in a subfolder is as follows: - The subfolder is generated using the mkdtemp method 
- the respective dumper puts its data there 
- the dumper also saves a Loader.pickle file there. This contains an object with a get method (call it to restore the data) and everything else necessary to recover the data 
- A LoaderWrapper object pointing to the datafolder with a relative
- path (to allow moving of the database) is saved under the respective key in the data_base 
 
 - The process of loading in the data is as follows: - the user request it: - db['somekey']
- the - LoaderWrapperobject is loaded from the backend sql database
- the - Loader.picklefile in the respective folder is loaded
- the - get-methdod of the unpickled object is called with the absolute path to the folder.
- the returned object is returned to the user 
 
Documentation unclear, incomplete, broken or wrong? Let us know