Skip to content

Create astra database, insert records via swagger ui and bulk insert via python

Notifications You must be signed in to change notification settings

Raj-Krishnamoorthy/astra-datastax

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

astra-datastax

Create astra database, insert records via swagger ui and bulk insert via python

How to create astra database, insert records using swagger ui and bulk insert via python

High level steps

  1. goto datastax.com and sign up for astra database

  2. create astra database

  1. Click on the connect

  1. Click on the REST API. Create app user and generate the client_id, client_secret and token. Also download

  1. Launch swagger link

  1. Use Swagger UI to create table, post records. To create table click on the schema and look for V2 option to create table

7.Add the App token you generated and keyspace is demo06 that was created as part of the database creation. Then create users table and click on execute

9 CSQL - to check if table was created.

  1. Insert records via swagger UI - same above look for v2 option under data

  1. Go to dashboard and click python. Now download secure connect bundle under python and connect to database

  1. run bulkinsert python script for batch insert. run the script - batchinsert.py

  2. CQL to check the record count.

About

Create astra database, insert records via swagger ui and bulk insert via python

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published