IBM / nodejs-idb-connector

A JavaScript (Node.js) library for communicating with Db2 for IBM i, with support for queries, procedures, and much more. Uses traditional callback-style syntax
MIT License
38 stars 23 forks source link

add a new API fieldInfo (#115) #118

Closed dmabupt closed 4 years ago

dmabupt commented 4 years ago

The new API fieldInfo provides all the information returned from filedName, filedType, filedWidth, filedPrecise, filedScale and filedNullable.

And the new TypeName property now returns data type as STRING per this requirement ( #115 ).

An example of the returned object is --

{
  "Name": "CUSNUM",
  "Type": 2,
  "TypeName": "NUMERIC",
  "Width": 7,
  "Precise": 6,
  "Scale": 0,
  "Nullable": false
}