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

Add Queryable interface #809

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Commits on May 9, 2022

  1. Add Queryable interface

    When writing applications it's useful to pass a sqlx.DB and a sqlx.Tx
    interchangeably so that you can compose functions that are runnable in
    isolation or as part of a transaction.
    
    This introduces the Queryable interface, which includes the common
    exportable methods shared between sqlx.DB and sqlx.Tx so users of the
    package don't have to implement it themselves.
    
    This also adds tests that validate any new shared methods are
    added to the interface.
    BlakeWilliams committed May 9, 2022
    Configuration menu
    Copy the full SHA
    9c5a420 View commit details
    Browse the repository at this point in the history