Skip to content

Commit

Permalink
added option to specify password in command
Browse files Browse the repository at this point in the history
  • Loading branch information
jruaux committed Jun 18, 2019
1 parent 2cc46dc commit a2bddc6
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 3 deletions.
10 changes: 10 additions & 0 deletions README.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,16 @@ WARNING: Add the appropriate driver jar for your database under the `lib` direct

For example with MySQL: `lib/mysql-connector-java-5.1.47.jar`

==== MS SQL Server

https://docs.microsoft.com/en-us/sql/connect/jdbc/microsoft-jdbc-driver-for-sql-server[JDBC Driver]

https://docs.microsoft.com/en-us/sql/connect/jdbc/building-the-connection-url?view=sql-server-2017[Building the Connection URL]
```
jdbc:sqlserver://[serverName[\instanceName][:portNumber]][;property=value[;property=value]]
```


=== JSON
RIOT can read and write JSON data in the following format:
[source,plaintext]
Expand Down
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@

<groupId>com.redislabs</groupId>
<artifactId>riot</artifactId>
<version>0.5.1</version>
<version>0.5.2</version>
<packaging>jar</packaging>
<name>RIOT</name>
<description>Redis Input/Output Tool</description>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ public class DatabaseConnectionOptions {
private String url;
@Option(names = "--username", description = "Login username of the database.")
private String username;
@Option(names = "--password", description = "Login password of the database.", interactive = true)
@Option(names = "--password", description = "Login password of the database.", arity = "0..1", interactive = true)
private String password;

public DataSource dataSource() {
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/com/redislabs/riot/cli/RootCommand.java
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ public class RootCommand extends AbstractCommand {
private int connectionTimeout = Protocol.DEFAULT_TIMEOUT;
@Option(names = "--socket-timeout", description = "Redis socket timeout in milliseconds. (default: ${DEFAULT-VALUE}).")
private int socketTimeout = Protocol.DEFAULT_TIMEOUT;
@Option(names = "--password", description = "Redis database password.", interactive = true)
@Option(names = "--password", description = "Redis database password.", arity = "0..1", interactive = true)
private String password;
@Option(names = "--pool-max-idle", description = "Maximum number of idle connections in the pool. Use a negative value to indicate an unlimited number of idle connections. (default: ${DEFAULT-VALUE}).")
private int maxIdle = 8;
Expand Down

0 comments on commit a2bddc6

Please sign in to comment.