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

Remove PrepareContext from DBTX unless emit_prepared_queries: true #2615

Closed
wants to merge 1 commit into from

Commits on Aug 14, 2023

  1. Remove PrepareContext from DBTX unless emit_prepared_queries: true

    sqlc's generated code doesn't use that method (unless
    emit_prepared_queries is enabled). Let's exclude it from the generated
    interface so that people providing a custom DBTX don't have to implement
    a unused function.
    
    This is a minor backwards compatibility break, if someone used the
    generated DBTX for other code that did actually call PrepareContext.
    Jille committed Aug 14, 2023
    Configuration menu
    Copy the full SHA
    ce902f1 View commit details
    Browse the repository at this point in the history