File tree Expand file tree Collapse file tree 2 files changed +3
-0
lines changed
java/com/datastax/oss/driver/examples/astra Expand file tree Collapse file tree 2 files changed +3
-0
lines changed Original file line number Diff line number Diff line change 16
16
package com .datastax .oss .driver .examples .astra ;
17
17
18
18
import com .datastax .oss .driver .api .core .CqlSession ;
19
+ import com .datastax .oss .driver .api .core .config .DriverConfigLoader ;
19
20
import com .datastax .oss .driver .api .core .cql .ResultSet ;
20
21
import com .datastax .oss .driver .api .core .cql .Row ;
21
22
import java .nio .file .Paths ;
@@ -56,6 +57,7 @@ public static void main(String[] args) {
56
57
.withCloudSecureConnectBundle (Paths .get ("/path/to/secure-connect-database_name.zip" ))
57
58
// Change the user_name and password here for the Astra instance
58
59
.withAuthCredentials ("user_name" , "fakePasswordForTests" )
60
+ .withConfigLoader (DriverConfigLoader .fromClasspath ("application-astra" ))
59
61
// Uncomment the next line to use a specific keyspace
60
62
// .withKeyspace("keyspace_name")
61
63
.build ()) {
Original file line number Diff line number Diff line change
1
+ datastax-java-driver { }
You can’t perform that action at this time.
0 commit comments