How to call a user-defined function from SQL++ statements.
This guide is for Couchbase Server.
Introduction
A User-Defined Function can be called like any other SQL++ function. The Javascript is not called directly; it is called through the SQL++ User-Defined Function.
Calling the SQL++ User-Defined Function
An SQL++ User-Defined Function can be called from anywhere that a standard SQL++ function can be called.
-
Query Workbench
-
REST API
-
SQL++
Run the EXECUTE FUNCTION
function in the CBQ Shell.