context:result

This function sets the result of a callback function to res.

Prototype

context:result(res)

Description

A callback context is available as a parameter inside the callback functions db:create_aggregate() and db:create_function(). It can be used to get further information about the state of a query.


The type of the result depends on the type of res and is either a number or a string or nil. All other values will raise an error message.

Lua functions

Topics