Insert data programmatically
You can use the Data API and CQL to insert data programmatically.
For required permissions to insert data, see Ways to insert data in Astra DB Serverless.
Insert data with the Data API
You can use the Data API to programmatically insert data into collections and tables in Astra DB Serverless databases.
|
The Data API is supported for Serverless (vector) and Serverless (non-vector) databases generally. However, vector and reranking functionalities aren’t compatible with all databases, tables, or collections. |
For Data API commands and examples, see the following:
|
If you’re new to the Data API, try the quickstart for collections or the quickstart for tables for a demo of some common operations, including inserting data. |
Insert data with CQL and drivers
For information about loading data and executing CQL statements with cqlsh and Cassandra drivers, see Cassandra Query Language (CQL) for Astra DB and Cassandra driver compatibility.