File tree Expand file tree Collapse file tree 1 file changed +6
-10
lines changed
astra-db-client/src/test/java/com/dtsx/astra/sdk/documentation Expand file tree Collapse file tree 1 file changed +6
-10
lines changed Original file line number Diff line number Diff line change 22
33import com .dtsx .astra .sdk .AstraDBAdmin ;
44import com .dtsx .astra .sdk .db .domain .Database ;
5-
65import java .util .stream .Stream ;
76
87public class FindAllDatabases {
9- public static void main (String [] args ) {
10-
11- AstraDBAdmin client = new AstraDBAdmin ("<replace_with_token >" );
8+ public static void main (String [] args ) {
9+ AstraDBAdmin client = new AstraDBAdmin ( "<token>" );
10+ boolean exists = client . isDatabaseExists ("<database_name >" );
1211
13- // Check is a database exists
14- boolean exists = client .isDatabaseExists ("<replace_with_db_name>" );
15-
16- // List all available databases
17- Stream <Database > dbStream = client .findAllDatabases ();
18- }
12+ // List all available databases
13+ Stream <Database > dbStream = client .findAllDatabases ();
14+ }
1915}
You can’t perform that action at this time.
0 commit comments