Tag: functions
A Guide to Serverless Functions
Serverless functions have become a popular application development and deployment approach. By abstracting infrastructure management and embracing event-driven architecture, they offer a flexible solution for developers. The main goal of serverless is to eliminate the need for infrastructure management and...
From N1QL to JavaScript and Back – Part 6: Advanced Topics
In previous blogs, we covered executing N1QL (SQL++) from JavaScript functions, processing documents through iterators, manipulating data, handling errors, and using prepared statements. We have a few more advanced topics to cover before we move onto manipulating JavaScript libraries, such as calling other...
From N1QL to JavaScript and Back – Part 5: Prepared statements
In previous blogs, we covered executing N1QL (SQL++) from JavaScript functions, processing documents through iterators, manipulating data. and handling errors. We now move to executing dynamic statements. Prepared statements JavaScript functions can prepare and execute prepared statements, much like any request...
From N1QL to JavaScript and back – Part 4: Error Handling
In previous blogs, we have covered executing N1QL from JavaScript functions, processing documents through iterators, and manipulating data. We now move onto handling errors from N1QL statements. Error handling When an error of any nature is encountered, the jsevaluator by...
From N1QL to JavaScript and Back – Part 3: Iterating over Documents and DML
This earlier blog goes through the basics of executing N1QL statements inside JavaScript functions. We now move onto… Iterators/Processing values So far we have purposely avoided statements that return data, and returning data from the function. This is where we...
From N1QL to JavaScript and Back – Part 2: Basic Usage
The previous blog introduced to you new features in JavaScript user-defined functions. We are now going to explore them in more detail. We start with a basic mechanism to execute N1QL statements inside JavaScript code. N1QL in JavaScript There are...
From N1QL to Javascript and Back – Part 1: Introduction
Among the many great features introduced in Couchbase Server 7.0, one has the potential for a greater impact in later releases: N1QL User Defined Functions. A quick glance at the past N1QL is a declarative language, meaning that requests merely...
Eventing Service Improvements in Couchbase Server 6.5
Couchbase Eventing Service provides a framework for writing your own functions to process data change events (create, update, delete/expiry). Couchbase Server 6.5 introduces a set of important improvements to the Eventing Service that enable a lot of new use cases...
Using cURL with the Eventing Service: Update
CURL is a utility function that has been available as a Developer Preview feature in Couchbase Eventing Functions. It has been in developer preview and was not recommended for production. We are listening to feedback to improve usability, and we...
Using N1QL with Couchbase Eventing Functions.
Now, this is not the end. It is not even the beginning of the end. But it is, perhaps, the end of the beginning. — Winston Churchill Updating data is usually not the end, but usually a progress of a...
Timers in Couchbase Functions
We are pleased to announce the support of Timers in Couchbase 6.0 Beta release. This is the an important innovation in Couchbase Functions that enables asynchronous compute in reference to wall-clock events. Timers are constructs by which developers can specify...
Eventing: Notification with Couchbase Functions
Important note: This blog post contains information about a developer preview CURL function in Eventing. The CURL function will be changing in Couchbase Server 6.5, please see Using cURL with the Eventing Service: Update for more details. Eventing is a...