-
Notifications
You must be signed in to change notification settings - Fork 397
Expand file tree
/
Copy pathTiDBOptions.java
More file actions
36 lines (26 loc) · 1.25 KB
/
TiDBOptions.java
File metadata and controls
36 lines (26 loc) · 1.25 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
package sqlancer.tidb;
import java.util.Arrays;
import java.util.List;
import com.beust.jcommander.Parameter;
import com.beust.jcommander.Parameters;
import sqlancer.DBMSSpecificOptions;
@Parameters(separators = "=", commandDescription = "TiDB (default port: " + TiDBOptions.DEFAULT_PORT
+ ", default host: " + TiDBOptions.DEFAULT_HOST + ")")
public class TiDBOptions implements DBMSSpecificOptions<TiDBOracleFactory> {
public static final String DEFAULT_HOST = "localhost";
public static final int DEFAULT_PORT = 4000;
@Parameter(names = { "--max-num-tables" }, description = "The maximum number of tables/views that can be created")
public int maxNumTables = 10;
@Parameter(names = { "--max-num-indexes" }, description = "The maximum number of indexes that can be created")
public int maxNumIndexes = 20;
@Parameter(names = "--oracle")
public List<TiDBOracleFactory> oracle = Arrays.asList(TiDBOracleFactory.QUERY_PARTITIONING);
@Parameter(names = "--enable-non-prepared-plan-cache")
public boolean nonPreparePlanCache;
@Parameter(names = { "--tiflash" }, description = "Enable TiFlash")
public boolean tiflash;
@Override
public List<TiDBOracleFactory> getTestOracleFactory() {
return oracle;
}
}