Public Member Functions

mozIStorageFunction Interface Reference

mozIStorageFunction is to be implemented by storage consumers that wish to receive callbacks during the request execution. More...

import "mozIStorageFunction.idl";

List of all members.

Public Member Functions

nsIVariant onFunctionCall (in mozIStorageValueArray aFunctionArguments)
 onFunctionCall is called when execution of a custom function should occur.

Detailed Description

mozIStorageFunction is to be implemented by storage consumers that wish to receive callbacks during the request execution.

SQL can apply functions to values from tables. Examples of such functions are MIN(a1,a2) or SQRT(num). Many functions are implemented in SQL engine.

This interface allows consumers to implement their own, problem-specific functions. These functions can be called from triggers, too.


Member Function Documentation

nsIVariant mozIStorageFunction::onFunctionCall ( in mozIStorageValueArray  aFunctionArguments  ) 

onFunctionCall is called when execution of a custom function should occur.

Parameters:
aNumArguments The number of arguments
aFunctionArguments The arguments passed in to the function
Returns:
any value as Variant type.

The documentation for this interface was generated from the following file: