Skip to content

Commit dc0641a

Browse files
authored
Merge pull request #92 from djsauble/patch-5
Tidy the comments in ClearCollection.java
2 parents 8fc1d37 + fd1a562 commit dc0641a

File tree

1 file changed

+6
-11
lines changed

1 file changed

+6
-11
lines changed

astra-db-client/src/test/java/com/dtsx/astra/sdk/documentation/ClearCollection.java

Lines changed: 6 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -4,16 +4,11 @@
44
import com.dtsx.astra.sdk.AstraDBCollection;
55

66
public class ClearCollection {
7-
public static void main(String[] args) {
7+
public static void main(String[] args) {
8+
AstraDB db = new AstraDB("<token>", "<api_endpoint>");
9+
AstraDBCollection collection = db.createCollection("collection_vector1", 14);
810

9-
// Accessing existing DB
10-
AstraDB db = new AstraDB("<token>", "<api_endpoint>");
11-
12-
// Access existing collection
13-
AstraDBCollection collection = db.createCollection("collection_vector1", 14);
14-
15-
// Clear collection
16-
collection.deleteAll();
17-
18-
}
11+
// Delete all rows from an existing collection
12+
collection.deleteAll();
13+
}
1914
}

0 commit comments

Comments
 (0)