nl_tokens: Adapts the parameters based on the prepared metadata . If the params are passed as an associative array ( Object ) it adapts the object into an array with the same order as columns
pl_tokens: function adaptNamedParamsPrepared ( params , columns ) { if ( ! params || util . isArray ( params ) || ! columns || columns . length === 0 ) { // params is an array or there aren't parameters return params ; } const paramsArray = new Array ( columns . length ) ; params = toLowerCaseProperties ( params ) ; const keys = { } ; for ( let i = 0 ; i < columns . length ; i ++ ) { const name = columns [ i ] . name ; if ( ! params . hasOwnProperty ( name ) ) { throw new errors . ArgumentError ( util . format ( 'Parameter "%s" not defined' , name ) ) ; } paramsArray [ i ] = params [ name ] ; <mask> [ name ] = i ; } return paramsArray ; }