Skip to content

[Refactor] Extract DB access logic from functionalities and views #378

@damien-rivet

Description

@damien-rivet

Terms

Description

DB access is done through a app level queryDBRow function located in the LoadData.swift file.

The whole logic to load and access the local databases should be moved to a dedicated service that exposes only the required functions with a set of very limited parameters. This refactor could also be used to add unit tests for those accesses.

At the App level, there is also no error management regarding this database logic, unless the App is plugged to Xcode there is no way to know if something has gone wrong.

Contribution

No response

Metadata

Metadata

Labels

featureNew feature or requesthelp wantedExtra attention is neededrefactorRefactor code to improve quality

Type

No type

Projects

Status

Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions