Skip to content

fetchTypeHandler - access to rowset meta data #1728

Open
@sosoba

Description

@sosoba
  1. Describe your new request in detail

Currently fetchTypeHandler receives the metadata of a single column in its only parameter. One of the possibilities offered by this plugin is changing the name of a column (field in the result object). Ex.:

fetchTypeHandler: (columnMetaData) => {
  columnMetaData = columnMetaData.toLowerCase();
}

To perform this safely it would be useful to have knowledge of all the result columns. Ex.

fetchTypeHandler: (columnMetaData, rowsetMetaData) => {
  const newName = columnMetaData.toLowerCase();
  if (rowsetMetaData.every(({name}) => name !== newName)) {
    columnMetaData = newName;
  }
}

I would like to propose adding a second argument to handler.

  1. Give supporting information about tools and operating systems. Give relevant product version numbers
    6.8.0

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions