File tree Expand file tree Collapse file tree 1 file changed +4
-7
lines changed
astra-db-client/src/test/java/com/dtsx/astra/sdk/documentation Expand file tree Collapse file tree 1 file changed +4
-7
lines changed Original file line number Diff line number Diff line change 11package com .dtsx .astra .sdk .documentation ;
22
33import com .dtsx .astra .sdk .AstraDB ;
4-
54import java .util .UUID ;
65
76public class Connecting {
87 public static void main (String [] args ) {
9- // Default Initialization
8+ // Default initialization
109 AstraDB db = new AstraDB ("<token>" , "<api_endpoint>" );
1110
12- // --- Other Initializations ---
13-
14- // (1) using non-default keyspace
15- AstraDB db1 = new AstraDB ("<token>" , "<api_endpoint>" , "<keyspac_name>e" );
11+ // Initialize with a non-default keyspace
12+ AstraDB db1 = new AstraDB ("<token>" , "<api_endpoint>" , "<keyspace>" );
1613
17- // (2) using identifier instead of endpoint (regions LB
14+ // Initialize with an identifier instead of an endpoint
1815 UUID databaseUuid = UUID .fromString ("<database_id>" );
1916 AstraDB db2 = new AstraDB ("<token>" , databaseUuid );
2017 }
You can’t perform that action at this time.
0 commit comments