query.map()

Calls the given closure with every row in the given query. the function returns a query that contains all values returned by the closure.

query.map( query, closure [, resQuery [, parallel [, maxThreads ] ] ] )

Returns: Query

Argument Description
query
query, required

query to iterate

closure
function, required

filter can be a function/closure that implements the following constructor [function(struct row[, number rowNumber, query query]):struct]. The returned struct is used to fill a single query row.

resQuery
query, optional
parallel
boolean, optional

execute closures parallel

maxThreads
number, optional

maximum number of threads executed, ignored when argument "parallel" is set to false

Examples

There are currently no examples for this function

See also