File tree Expand file tree Collapse file tree 1 file changed +5
-10
lines changed
astra-db-client/src/test/java/com/dtsx/astra/sdk/documentation Expand file tree Collapse file tree 1 file changed +5
-10
lines changed Original file line number Diff line number Diff line change 1- package com .dtsx .astra .sdk ;
2-
1+ package com .dtsx .astra .sdk . documentation ;
2+ import com . dtsx . astra . sdk . AstraDB ;
33import io .stargate .sdk .json .domain .CollectionDefinition ;
44
5- public class Documentation {
6- public static void listCollections ( ) {
5+ public class ListCollections {
6+ public static void main ( String [] args ) {
77 // Given an active db
88 AstraDB db = new AstraDB ("<token>" , "<api_endpoint>" );
9-
9+ // Iterate over all collections
1010 db .findAllCollections ().forEach (col -> {
1111 System .out .println ("name=" + col .getName ());
1212 if (col .getOptions () != null && col .getOptions ().getVector () != null ) {
@@ -17,8 +17,3 @@ public static void listCollections() {
1717 });
1818 }
1919}
20-
21-
22- // [...]
23-
24-
You can’t perform that action at this time.
0 commit comments