This guide is for Couchbase Server.
SQL++ includes a large number of operations and generic functions that cover every aspect of data manipulation. In addition to the built-in functions, Couchbase also allows you to create your own extensions to the language.
Using User-Defined Functions, you can:
Create reuseable, domain-specific functions for use in your applications.
Execute complex logic that may be difficult to do in SQL++.
Migrate from RDBMS stored procedures.
If you wish to look into the constructs and available in the language itself, then you can have a look through the following pages: