Creating a User-Defined Function
This guide is for Couchbase Server.
For more information on SQL++ User Defined Functions in general, read User-Defined Functions.
UDFscreen from the administration console.
Click on the
+ add functionlink from the
which will display the
Fill in the
Function Nameof your SQL++ User-Defined Function.
Parametersas they are.
…in the parameters box denotes a variable length list of parameters. This is why you don’t have to fill in this field.
From this list select the library containing your function.
Library Function Namefield.
CREATE FUNCTION in the CBQ Shell to create the SQL++ User-Defined Function:
Having created your SQL++ User-Defined Function, the next step is to use a SQL++ statement to call the function.