paragonie/easydb

Support for complex fetch modes

Opened this issue · 0 comments

It would be good to have support for fetch modes which require additional information. Examples: PDO::FETCH_FUNC, PDO::FETCH_CLASS.

The main benefit would be that we can continue using existing methods (e.g q/safeQuery, run?) whithout having to go outside the wrapper (e.g via query).

If I'm missing something obvious would you mind pointing in the right direction?

Perhaps a new simple FetchStyle type to hold the mode plus additional information would suffice?