question

ynv_2006_193227 avatar image
ynv_2006_193227 asked @brasco --Donnie Roberson-- answered

How do I connect to Astra with Theia IDE?

I couldn't see the link to connect to Eclipse Theia IDE from Astra Database connection.

Can you please help on how to connect to cqlsh thru Theia

astratheia
10 |1000

Up to 8 attachments (including images) can be used with a maximum of 1.0 MiB each and 10.0 MiB total.

Erick Ramirez avatar image
Erick Ramirez answered Erick Ramirez edited

We don't have documentation on how to connect with Theia yet.

But if you weren't aware, there is an embedded cqlsh on Astra which you can access from your browser. For details, see Connecting to Astra databases using CQLSH.

If you'd prefer to use an IDE, there is also an embedded DataStax Studio available from your Astra DB. For details, see Connecting to databases with DataStax Developer Studio.

In the meantime, I'm going to reach out internally to the Cloud team at DataStax to see if they have instructions they can share. I will update my answer if I have anything new to add. Cheers!

Share
10 |1000

Up to 8 attachments (including images) can be used with a maximum of 1.0 MiB each and 10.0 MiB total.

@brasco --Donnie Roberson-- avatar image
@brasco --Donnie Roberson-- answered

Hi @ynv_2006_193227

Using Theia with Astra is fairly simple

  1. Download your secure connect bundle and push it to your github repo where the code you are using lives and pass the path to your connection string. (do not unzip it)
  2. Install the correct driver via the integrated cli using the instructions for your driver
    https://docs.datastax.com/en/astra/aws/doc/dscloud/astra/dscloudUsingDrivers.html
  3. Import/add your github repo to the ide
  4. Make any code modifications you want in the ide
  5. Execute the code in the integrated cli

Note if you are using the python driver you must use the latest driver. Previous version do not work with ubuntu 20.04


The below screenshot is using gitpod and the python driver but it should be the same running it locally.

Hope that Helps

Donnie



Share
10 |1000

Up to 8 attachments (including images) can be used with a maximum of 1.0 MiB each and 10.0 MiB total.