File tree 2 files changed +8
-6
lines changed
ydb-cookbook/src/main/java/tech/ydb/examples
2 files changed +8
-6
lines changed Original file line number Diff line number Diff line change @@ -18,11 +18,12 @@ protected void doMain(String[] args) {
18
18
if (args .length == 1 ) {
19
19
connString = args [0 ];
20
20
} else {
21
- connString = "some.host.name.com:2135?database=/Root" ;
22
- System .err .println ("Pass <connection-string> as argument to override connection settings\n " );
21
+ System .err .println ("Pass <connection-string> as an argument. " +
22
+ "Example: some.host.name.com:2135?database=/Root\n " );
23
+ return ;
23
24
}
24
25
25
- System .err .println ("connection-string: " + connString + "\n " );
26
+ System .out .println ("connection-string: " + connString + "\n " );
26
27
27
28
try (GrpcTransport transport = GrpcTransport .forConnectionString (connString )
28
29
.withAuthProvider (CloudAuthHelper .getAuthProviderFromEnviron ())
Original file line number Diff line number Diff line change @@ -20,11 +20,12 @@ protected void doMain(String[] args) {
20
20
if (args .length == 1 ) {
21
21
connString = args [0 ];
22
22
} else {
23
- connString = "some.host.name.com:2135?database=/Root" ;
24
- System .err .println ("Pass <connection-string> as argument to override connection settings\n " );
23
+ System .err .println ("Pass <connection-string> as an argument. " +
24
+ "Example: some.host.name.com:2135?database=/Root\n " );
25
+ return ;
25
26
}
26
27
27
- System .err .println ("connection-string: " + connString + "\n " );
28
+ System .out .println ("connection-string: " + connString + "\n " );
28
29
29
30
try (GrpcTransport transport = GrpcTransport .forConnectionString (connString )
30
31
.withAuthProvider (CloudAuthHelper .getAuthProviderFromEnviron ())
You can’t perform that action at this time.
0 commit comments