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

pkg/sqlutil: switch TimeoutHook argument to func for dynamic reconfiguration; add TransactDataSource #403

Merged
merged 2 commits into from
Mar 24, 2024

Conversation

jmank88
Copy link
Collaborator

@jmank88 jmank88 commented Mar 15, 2024

Towards: https://smartcontract-it.atlassian.net/browse/BCF-2978

  • Switch TimeoutHook from a static value to a func for dynamic reconfiguration
  • Add NamedExecContext & PrepareNamedContext to sqlutil.DataSource
  • Add TransactDataSource for raw SQL txs

Supports:

samsondav
samsondav previously approved these changes Mar 15, 2024
krehermann
krehermann previously approved these changes Mar 15, 2024
Copy link
Contributor

@krehermann krehermann left a comment

Choose a reason for hiding this comment

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

can you add a comment to the commit regarding the motivation for the change? what was problematic about the static val?

@jmank88 jmank88 dismissed stale reviews from krehermann and samsondav via 4ce47fb March 15, 2024 15:12
@jmank88 jmank88 force-pushed the dynamic-timeout-hook branch from 91e05ff to 4ce47fb Compare March 15, 2024 15:12
@jmank88 jmank88 force-pushed the dynamic-timeout-hook branch from 4ce47fb to 2dffd98 Compare March 16, 2024 13:10
@jmank88 jmank88 changed the title pkg/sqlutil: switch TimeoutHook argument to func pkg/sqlutil: switch TimeoutHook argument to func for dynamic reconfiguration; add TransactDataSource Mar 16, 2024
@jmank88 jmank88 force-pushed the dynamic-timeout-hook branch from 2dffd98 to 82d244f Compare March 21, 2024 12:57
@jmank88 jmank88 force-pushed the dynamic-timeout-hook branch from 82d244f to ca50630 Compare March 22, 2024 13:54
@jmank88 jmank88 merged commit 2bc22a6 into main Mar 24, 2024
7 of 9 checks passed
@jmank88 jmank88 deleted the dynamic-timeout-hook branch March 24, 2024 14:44
ettec pushed a commit that referenced this pull request Mar 28, 2024
…uration; add TransactDataSource (#403)

Co-authored-by: krehermann <[email protected]>
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