Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Configure custom processor #80

Open
wants to merge 10 commits into
base: master
Choose a base branch
from

Conversation

jonkerw85
Copy link

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.

@MarioAquino-MAQU
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants