-
Notifications
You must be signed in to change notification settings - Fork 397
Expand file tree
/
Copy pathQuestDBOptions.java
More file actions
39 lines (28 loc) · 1.18 KB
/
QuestDBOptions.java
File metadata and controls
39 lines (28 loc) · 1.18 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
package sqlancer.questdb;
import java.util.Arrays;
import java.util.List;
import com.beust.jcommander.Parameter;
import com.beust.jcommander.Parameters;
import sqlancer.DBMSSpecificOptions;
@Parameters(separators = "=", commandDescription = "QuestDB (default port: " + QuestDBOptions.DEFAULT_PORT
+ " default host: " + QuestDBOptions.DEFAULT_HOST + ")")
public class QuestDBOptions implements DBMSSpecificOptions<QuestDBOracleFactory> {
public static final String DEFAULT_HOST = "localhost";
public static final int DEFAULT_PORT = 8812;
@Parameter(names = "--oracle")
public List<QuestDBOracleFactory> oracle = Arrays.asList(QuestDBOracleFactory.WHERE);
@Parameter(names = "--username", description = "The user name used to log into QuestDB")
private String userName = "admin"; // NOPMD
@Parameter(names = "--password", description = "The password used to log into QuestDB")
private String password = "quest"; // NOPMD
@Override
public List<QuestDBOracleFactory> getTestOracleFactory() {
return oracle;
}
public String getUserName() {
return userName;
}
public String getPassword() {
return password;
}
}