-
Notifications
You must be signed in to change notification settings - Fork 397
Expand file tree
/
Copy pathCockroachDBOptions.java
More file actions
38 lines (27 loc) · 1.48 KB
/
CockroachDBOptions.java
File metadata and controls
38 lines (27 loc) · 1.48 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
package sqlancer.cockroachdb;
import java.util.Arrays;
import java.util.List;
import com.beust.jcommander.Parameter;
import com.beust.jcommander.Parameters;
import sqlancer.DBMSSpecificOptions;
@Parameters(separators = "=", commandDescription = "CockroachDB (default port: " + CockroachDBOptions.DEFAULT_PORT
+ " default host: " + CockroachDBOptions.DEFAULT_HOST + ")")
public class CockroachDBOptions implements DBMSSpecificOptions<CockroachDBOracleFactory> {
public static final String DEFAULT_HOST = "localhost";
public static final int DEFAULT_PORT = 26257;
@Parameter(names = "--oracle")
public CockroachDBOracleFactory oracle = CockroachDBOracleFactory.NOREC;
@Parameter(names = {
"--test-hash-indexes" }, description = "Test the USING HASH WITH BUCKET_COUNT=n_buckets option in CREATE INDEX")
public boolean testHashIndexes = true;
@Parameter(names = { "--test-temp-tables" }, description = "Test TEMPORARY tables")
public boolean testTempTables; // default: false https://github.com/cockroachdb/cockroach/issues/85388
@Parameter(names = { "--max-num-tables" }, description = "The maximum number of tables 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;
@Override
public List<CockroachDBOracleFactory> getTestOracleFactory() {
return Arrays.asList(oracle);
}
}