laravel-db2 icon indicating copy to clipboard operation
laravel-db2 copied to clipboard

Configure custom processor

Open jonkerw85 opened this issue 3 years ago • 1 comments

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.

jonkerw85 avatar Dec 18 '21 13:12 jonkerw85

@cooperl22 I really would like to use this! Is there a reason why this never has been accepted?

MarioAquino-MAQU avatar May 18 '22 15:05 MarioAquino-MAQU