File tree Expand file tree Collapse file tree 2 files changed +4
-8
lines changed
astra-db-client/src/test/java/com/dtsx/astra/sdk/documentation Expand file tree Collapse file tree 2 files changed +4
-8
lines changed Original file line number Diff line number Diff line change 77public class CreateCollection {
88 public static void main (String [] args ) {
99 // Given an active db
10- //AstraDB db = new AstraDB("<token>", "<api_endpoint>");
11- AstraDB db = new AstraDB (
12- "AstraCS:iLPiNPxSSIdefoRdkTWCfWXt:2b360d096e0e6cb732371925ffcc6485541ff78067759a2a1130390e231c2c7a" ,
13- "https://1537fca7-e315-4a63-8773-846bde477518-us-east1.apps.astra.datastax.com" );
10+ AstraDB db = new AstraDB ("<token>" , "<api_endpoint>" );
11+
1412 // Create collection with no vector
1513 AstraDBCollection collection1 = db .createCollection ("collection_simple" );
1614
Original file line number Diff line number Diff line change 77public class DeleteCollection {
88 public static void main (String [] args ) {
99 // Given an active db
10- //AstraDB db = new AstraDB("<token>", "<api_endpoint>");
11- AstraDB db = new AstraDB (
12- "AstraCS:iLPiNPxSSIdefoRdkTWCfWXt:2b360d096e0e6cb732371925ffcc6485541ff78067759a2a1130390e231c2c7a" ,
13- "https://1537fca7-e315-4a63-8773-846bde477518-us-east1.apps.astra.datastax.com" );
10+ AstraDB db = new AstraDB ("<token>" , "<api_endpoint>" );
11+
1412 // Find a collection
1513 db .deleteCollection ("tmp_collection" );
1614 }
You can’t perform that action at this time.
0 commit comments