WARNING: Most of this content (with the exception of the Mozilla 1.9 XPCOM reference) is very old, and can be expected to be out of date and possibly obsolete. For better XUL documentation, please visit the XUL hub at the Mozilla Developer Center.

mozIStorageFunction

IID:9ff02465-21cb-49f3-b975-7d5b38ceec73
Inherits From:nsISupports

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.


Methods

nsIVariant onFunctionCall ( mozIStorageValueArray functionArguments )

nsIVariant onFunctionCall ( mozIStorageValueArray functionArguments )

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

Arguments:
functionArguments: The arguments passed in to the function

References

This interface is passed as an argument to the following methods:

mozIStorageConnection.createFunction

Reference documentation is generated from Mozilla's source.