Dark Mode

Prerequisites

  • Copy the certificate files from the Astra DB secure connect bundle to ../secure-connect/ .This folder should contain the ca.cert , cert , and key files.
  • Replace the <hostname> with your Astra DB database hostname.
  • Replace the <port> with your Astra DB database port.
  • Replace <username> and <password> with the Astra DB database Client ID_ and _Client Secret.
  • 1

Example

  • 1

In the example above, the following variables are used:

  • hostname is 7bb9cd7a-e49d-49a6-aa3d-be4878f974ef-us-east1.db.astra.datastax.com
  • port is 31575
  • username is john.smith
  • password is `jsP@ssw0rd`

Following the procedure above this code allows CQLAlchemy to utilize Astra DB.