laravel-db2
laravel-db2 copied to clipboard
Configure custom processor
This modification enables the possibility to configure a custom DB2 processor.
The Processor class can contain the processSelect() method. This method enables you to modify the results returned by the database before it is handed over to Laravel. We use custom processors to be able to :
- Trim values returned by the database.
- Convert values from ISO-8859-1 to UTF8.
- The column names we use are cryptic, e.g. TBEUSRI. We rename these cryptic column names to something readable like userId.
- Resolving issues related to https://github.com/cooperl22/laravel-db2/issues?q=++AGGREGATE+ . By casting AGGREGATE to the lowercase aggregate as expected by laravel.
@cooperl22 I really would like to use this! Is there a reason why this never has been accepted?