Stargate is an open-source API framework for data. This demo will show how we can quickly spin up an Apache Cassandra cluster on DataStax Astra with the Stargate Document API enabled and load JSON documents. Stargate's document API enables users to use Apache Cassandra as a schemaless document database.
Create a document collection on write and load JSON
data completely schemaless! On Apache Cassandra!
You can use this demo to illustrate loading JSON
data of differing shapes and depths into the same "table" and query on a common (or not common) attribute!
This updated demo is adapted into Golang from my other repo that used Java.
- Create an Astra Serverless database
- Create an Application Token for your database to use in authentication.
- Put your database UUID, cloud region, application token, and keyspace name into the struct variables
- Run the example program!
The Stargate community needs you! Please consider contributing to the community, submitting feature requests, filing bugs, and developing your own API's!