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

Improve fields creation #27

Closed
wilsonfreitas opened this issue May 9, 2022 · 1 comment
Closed

Improve fields creation #27

wilsonfreitas opened this issue May 9, 2022 · 1 comment

Comments

@wilsonfreitas
Copy link
Collaborator

Fields have a handler attribute that defines the variable type to parse the column.
The pass-thru generic handler is to define handler type as character.
By doing that you tell to the parser that this column has not a specific type and should reaims as a character.

fields:
- name: company
  description: Nome da companhia
  handler:
    type: character

Instead of defining a character handler a better approach is defining no handler. Like that:

fields:
- name: company
  description: Nome da companhia

Once a field has no handler it is assumed it uses a pass-thru generic handler.

This simplifies the config file and improves configuration.

wilsonfreitas pushed a commit that referenced this issue May 9, 2022
@wilsonfreitas
Copy link
Collaborator Author

Done

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

No branches or pull requests

1 participant