forrest79 / phpgsql

Simple and fast PHP database library for PostgreSQL with auto converting DB types to PHP and fluent interface for SQL query writing.
Other
11 stars 3 forks source link

fetchAssoc() - can have "object" in key? #17

Closed forrest79 closed 4 months ago

forrest79 commented 4 years ago

Add some syntax like this? {::format('Y-m-d')} that call method format().

$result->fetchAssoc('date{::format(\'Y-m-d\')}=id');
forrest79 commented 4 months ago

Done with fetch mutators c9fd219daa1834b9110b70d8e9196e6b063eb41b