Skip to content

Commit e2e9ab9

Browse files
authored
Merge pull request #88 from djsauble/patch-1
Clean up comments and parameter names in Connecting.java
2 parents fa12a79 + ba81087 commit e2e9ab9

File tree

1 file changed

+9
-12
lines changed
  • astra-db-client/src/test/java/com/dtsx/astra/sdk/documentation

1 file changed

+9
-12
lines changed
Lines changed: 9 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,18 @@
11
package com.dtsx.astra.sdk.documentation;
22

33
import com.dtsx.astra.sdk.AstraDB;
4-
54
import java.util.UUID;
65

76
public class Connecting {
8-
public static void main(String[] args) {
9-
// Default Initialization
10-
AstraDB db = new AstraDB("<token>", "<api_endpoint>");
11-
12-
// --- Other Initializations ---
7+
public static void main(String[] args) {
8+
// Default initialization
9+
AstraDB db = new AstraDB("<token>", "<api_endpoint>");
1310

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
18-
UUID databaseUuid = UUID.fromString("<database_id>");
19-
AstraDB db2 = new AstraDB("<token>", databaseUuid);
20-
}
14+
// Initialize with an identifier instead of an endpoint
15+
UUID databaseUuid = UUID.fromString("<database_id>");
16+
AstraDB db2 = new AstraDB("<token>", databaseUuid);
17+
}
2118
}

0 commit comments

Comments
 (0)