context:user_data

Returns the userdata parameter given in the call to install the callback function.

Prototype

context:user_data()

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.

Returns the userdata parameter given in the call to install the callback function (see db:create_aggregate() and db:create_function() for details).

Lua functions

Topics