Explore the Playground
- Capella Operational
- tutorial
Use the Playground to practice and learn more about SQL++.
The Playground lets you try out SQL++ code examples through interactive tutorials inside the Couchbase Capella UI.
How the Playground Works
The code examples in the Playground run in a remote execution environment deployed in the USA, which imposes limits to the runtime of each programming language. The remote environment has a firewall that prevents access to domains or networks outside of the Couchbase Cloud environment.
When you run a code example on the Playground, Couchbase Capella:
-
Generates a temporary credential for you with read and write access to the bucket you used for the code example. This temporary credential is destroyed after your code example request is executed.
-
Provides the remote execution environment with temporary network access to your cluster. This temporary network access is automatically revoked after 1 hour.
For security purposes, do not include your cluster access credentials in your code examples.
Prerequisites
Before you use the Playground, make sure that you have access to the travel-sample
bucket on your cluster.
If you do not have access to the travel-sample
bucket, import the sample data or open a support ticket.
Use the Playground
To use the Playground:
-
Go to Playground and select 1 of the following tutorials:
-
Understand the Power of SQL++ to explore different SQL++ queries and experiment with data.
-
-
In the tutorial home page, you can do the following:
-
Click Run to execute the example code and generate the response in the Response field.
-
Click Next to go to the next chapter of the tutorial.
-
Click Prev to return to the previous chapter of the tutorial.
-
Select a chapter from the Chapter list to go to a specific chapter.
-
Click Exit Playground to return to the Capella home page.
-
To make small changes to the code examples, you must make sure that:
Your code examples will not run if they do not meet these requirements. |
Turn Off the Playground
To turn off the Playground:
-
Go to Clusters.
-
Select the cluster you want to turn off the Playground for.
-
Go to
. -
In the Playground section, select Disable Playground.
-
Click Save.
Next Steps
After you explore the Playground, you can:
If you want to connect to your cluster:
-
Generate your cluster credentials to connect and control access to you cluster.
-
Add your current IP address as an allowed IP for you cluster.
-
Generate a code snippet to connect your cluster to your application.
-
Choose and install a Couchbase SDK.
-
(Optional) Download the security certificate for your cluster and add it to your application’s server machine or IDE:
-
In the Operational tab, select a cluster.
-
Go to
. -
Click Download.
-