Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add gorm #46

Merged
merged 7 commits into from
Oct 15, 2023
Merged

Add gorm #46

merged 7 commits into from
Oct 15, 2023

Conversation

KingAkeem
Copy link
Collaborator

A couple of things going on here.

  1. Adding dependencies for GORM and it's postgres driver.
  2. Integrating GORM by adding a database layer where models and setup will be done.
  3. Adding SQL files to setup the initial database for GORM to use.
  4. Adding configuration for postgres database instance.
  5. Updating README to explain necessary installation steps for GORM postgres
  6. GORM is now inserting requests monitored by the monitor package.

Currently, the database isn't being mocked so all tests will fail due to a nil error.

http.Header is now converted to a string so that it can be saved to the database.
The request body is read to a string so that it can be saved as well.

@KingAkeem KingAkeem requested a review from PSNAppz October 3, 2023 20:57
@KingAkeem KingAkeem merged commit f00b13f into dev Oct 15, 2023
This was referenced Oct 15, 2023
@KingAkeem KingAkeem deleted the add_gorm branch October 15, 2023 14:24
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