Skip to content

Refactored db_sqlite.rs and the usage.#231

Open
javerik wants to merge 1 commit into
szabodanika:masterfrom
javerik:refactor_database
Open

Refactored db_sqlite.rs and the usage.#231
javerik wants to merge 1 commit into
szabodanika:masterfrom
javerik:refactor_database

Conversation

@javerik

@javerik javerik commented Oct 13, 2023

Copy link
Copy Markdown

Issue

  • Creation of database was only done on request.
  • Crash when database queries would not be successful

Changes

  • Database gets created on startup
  • Moved creation and recreation to own function to prevent duplicates of create sql query
  • Error handling of database queries in terms of logging and HTTP error

Init of database on startup.
Error handling of database error in
terms of logging and HTTP error responses
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.

3 participants