Skip to content

Make sure that each query against database uses a new connection object#300

Merged
sondreb merged 5 commits intomasterfrom
bug/sql-connections
Mar 9, 2021
Merged

Make sure that each query against database uses a new connection object#300
sondreb merged 5 commits intomasterfrom
bug/sql-connections

Conversation

@dangershony
Copy link
Copy Markdown
Member

  • This is the smallest impact and quickest way to fix the issue with connections against sqlite database.
  • Closes Sqlite wallet issue #299

- This is the smallest impact and quickest way to fix the issue with connections against sqlite database.
- Closes #299
@dangershony
Copy link
Copy Markdown
Member Author

We probably need to run all tests locally on this one, I will do it now.

Comment thread src/Features/Blockcore.Features.Wallet/Database/WalletStore.cs
@dangershony dangershony requested a review from MithrilMan March 9, 2021 18:21
@MithrilMan
Copy link
Copy Markdown
Contributor

at a first glance I see you didn't disposed any connection.
Everytime you create a connection, you have to dispose it, use the using pattern

Copy link
Copy Markdown
Contributor

@MithrilMan MithrilMan left a comment

Choose a reason for hiding this comment

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

seems good to me, just added some comments

Comment thread src/Features/Blockcore.Features.Wallet/Database/WalletStore.cs
Comment thread src/Features/Blockcore.Features.Wallet/Database/WalletStore.cs Outdated
Comment thread src/Directory.Build.props
@sondreb sondreb merged commit 19596af into master Mar 9, 2021
@sondreb sondreb deleted the bug/sql-connections branch March 9, 2021 20:40
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.

Sqlite wallet issue

3 participants