QueryRegisterFunction
Method Signature
QueryRegisterFunction(name=[string], function=[function], returnType=[string], type=[string])Arguments
Argument
Type
Required
Description
Default
Examples
Register a function available within query operations
queryRegisterFunction( "doubleIt", ( value ) => value * 2 );
q = queryNew( "n", "integer", [ [ 5 ], [ 10 ] ] );
result = q.map( ( row ) => doubleIt( row.n ) );
writeOutput( result[ 1 ] );
Related
Last updated
Was this helpful?
