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

Use sqlite inmemory database #266

Merged
merged 3 commits into from
Jul 14, 2022
Merged

Use sqlite inmemory database #266

merged 3 commits into from
Jul 14, 2022

Conversation

Christdej
Copy link
Contributor

Change test / dev database to SQLite.
Add possibility to connect to remote SQL database.
Update tests and usage of database in tests

@Christdej Christdej force-pushed the sqlite branch 6 times, most recently from 9cf124c to 52c09e5 Compare July 7, 2022 11:43
@Christdej Christdej marked this pull request as ready for review July 7, 2022 11:44
This was linked to issues Jul 8, 2022
Copy link
Contributor

@GodVenn GodVenn left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, but 4 of the tests fail locally for me, due to the 'concurrency exception'.
EDIT: The tests passed after pulling your branch instead of the PR for some reason.

I also added a commit to move the database config from the Program.cs file to its own service extension to keep the Program.cs file light

backend/api/Database/Models/Report.cs Show resolved Hide resolved
@GodVenn
Copy link
Contributor

GodVenn commented Jul 8, 2022

Not sure if we should merge with the change RobotId -> Robot, want to know why this was done.
Suggesting holding off merge until @Christdej is back from vacations since this is not urgent.
This is probably fine, approving now

Copy link
Contributor

@GodVenn GodVenn left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great to me

@GodVenn GodVenn merged commit 316e03b into equinor:main Jul 14, 2022
@Christdej Christdej deleted the sqlite branch February 20, 2023 06:26
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.

SQL database Merge "api/Context" and "api/Database"
2 participants