Skip to content

Remove SQLite integration in favor of an ORM for a DB agnostic implementation - #9

Open
David-bfg wants to merge 8 commits into
cwwmbm:mainfrom
David-bfg:main
Open

Remove SQLite integration in favor of an ORM for a DB agnostic implementation#9
David-bfg wants to merge 8 commits into
cwwmbm:mainfrom
David-bfg:main

Conversation

@David-bfg

Copy link
Copy Markdown

Refactored-removed SQLite in favor of SQLAlchemy an ORM Database solution.

Will allow project to easily extend to other supported databases beyond just SQLite such as one running out on a server.

Note: significantly more confident on app.py because I don't want to get my IP blocked or banned by running main.py.
Thus main.py requires some testing-code review beyond a quick LGTM.

added a model file of the SQL schema
replaced SQLite integration with SQLAlchemy ORM
code ported and simplified
will allows app to be DB agnostic eventually
A full refactor of the main file that scrapes data. SQLite is out and
SQLAlchemy is in. Improved code simplicity and removing around 90 LOC.
DB model has also been extended to implement filtered jobs and include
some additional default values.
Bug found in API target that was not used derectly by the web app
Found syntax typos, rewrote to pass in attributes during object creation
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant