On Feb 13, 4:13 am, Clive Crous <[email protected]> wrote: > Hi everyone, > > I did some source diving and found out how to use call_sproc within > the unit tests. This really aught to be documented somewhere. > and, to be 100% frank, I'd much rather see something like > db.select_sproc( :proc, *args ) than db.call_sproc( :select, :proc, > *args ) if they really need to be called differently.
Yeah, the release notes covered this, but better documentation would be helpful (send in a patch if you have the time). In general, you shouldn't be calling Database#call_sproc, but Dataset#call_sproc (even though you aren't really using a dataset). The API for Dataset#call_sproc is database independent, while the API to Database#call_sproc is not. It would be fairly easy to add the *_sproc methods via metaprogramming. I didn't because it doesn't save much typing, and if you use Dataset#call_sproc it doesn't need to be called differently. Jeremy --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "sequel-talk" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/sequel-talk?hl=en -~----------~----~----~----~------~----~------~--~---
