// NamedGetContext within a transaction.
// Any named placeholder parameters are replaced with fields from arg.
// An error is returned if the result set is empty.
NamedGetContext within a transaction.
Any named placeholder parameters are replaced with fields from arg.
An error is returned if the result set is empty.
// NamedGetContext within a transaction . // Any named placeholder parameters are replaced with fields from arg . // An error is returned if the result set is empty .
func (tx *Tx) NamedGetContext(ctx Ctx, dest interface{}, query string, arg interface{}) error {
	query, args, err := tx.BindNamed(query, arg)
	if err == nil {
		err = tx.GetContext(ctx, dest, query, args...)
	}
	return err
}
func ( tx * Tx ) NamedGetContext ( ctx Ctx , dest interface { } , query string , arg interface { } ) error { query , args , err := tx . BindNamed ( query , arg ) if err == nil { err = tx . GetContext ( ctx , dest , query , args ... ) } return err }
NamedGetContext within a transaction.
NamedGetContext within a transaction .