N1QL has many functions that allow you to perform a specific operation. One such function that has been added into the new Couchbase 5.0 DP is CURL.
CURL allows you to use N1QL to interact with external JSON endpoints; namely, Rest APIs that return results and data in JSON format. This function will allow N1QL to have a conservative set of curl functionality built into the language. Interaction primarily consists of data transfer to and from a server using the HTTP and HTTPS protocols. In short, the CURL function in N1QL provides you, the user, a subset of standard curl functionality within a query language.
No comments:
Post a Comment