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

Fix the update strategy for the diesel store to work with all backends #64

Closed

Conversation

weiznich
Copy link
Contributor

@weiznich weiznich commented Oct 27, 2023

by querying the table to check if the session is already there and then issue an insert/update statement as required.

This commit just queries the table first to decide whether an insert or
an update statement is required.
@codecov
Copy link

codecov bot commented Oct 27, 2023

Codecov Report

❗ No coverage uploaded for pull request base (session-prefix@6490455). Click here to learn what that means.
The diff coverage is n/a.

@@                Coverage Diff                @@
##             session-prefix      #64   +/-   ##
=================================================
  Coverage                  ?   80.03%           
=================================================
  Files                     ?       14           
  Lines                     ?      571           
  Branches                  ?        0           
=================================================
  Hits                      ?      457           
  Misses                    ?      114           
  Partials                  ?        0           

@maxcountryman maxcountryman deleted the branch maxcountryman:session-prefix October 28, 2023 15:28
weiznich added a commit to weiznich/tower-sessions that referenced this pull request Oct 31, 2023
@maxcountryman
Copy link
Owner

GH automatically closed this PR when I merged #62. That doesn't seem right, so if there's some repo config that needs to be updated to prevent that in the future please let me know and I'll fix that from happening in the future.

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.

2 participants