Conversation
The feature has been depreciated from Markstammdatenregister
* rename self.--- objects * move constants to constants.py
* was not tested
* rename self.--- objects * move constants to constants.py
Can not be improved as e.g. `orm.BasicUnit.EinheitMastrNummer == orm_tables["unit_data"].EinheitMastrNummer` EinheitenMastrNummer has to be called with .
* all csv tables are exported via one export function * all db queries are created in one function `create_db_query`. The structure of the function should enable easy tables joins in the future for csv export within on session. * additional tables can be now also exported with a limit * in constants.py ORM_MAP was extended. ORM_MAP maps the parameters that the user inserts to the tables classes in orm.py. This means additional tables for export can be easily added here, if desired. * metadata saving was moved to its own function
* generalize csv-export logging info
…xport # Conflicts: # open_mastr/soap_api/mirror.py
|
A short summary of the most important changes:
Pytest It is due to the Markstammdatenregister has unstable columns (columns are renamed, new columns are added, columns are deleted). This makes testing with static columns impractical in my opinion. |
|
Volkswagen was not necessary ;) |
deniztepe
left a comment
There was a problem hiding this comment.
Overall it works well. I guess, the commented three points are small issues.
Currently metadata is only and can only be created for technologies. Will be enabled for additional_tables in #386
* _db_path was getting longer if the folder has more files * black applied
|
@deniztepe you can approve, if I met your suggestions. |
|
Hey @chwrwm, I'd like to reference the package prior to the CSV refactoring. However, the latest version 0.12.1 does not include all recent fixes. |
Hmm, maybe it is not necessary. Did the CSV format change with the refactoring? |
Closes #400