Skip to content

Commit 66f7592

Browse files
Add decentralized KnowlegdeBase for tests
1 parent 4b4a1c8 commit 66f7592

1 file changed

Lines changed: 36 additions & 0 deletions

File tree

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
package org.javawebstack.orm.test.shared.knowledge;
2+
3+
import java.util.Arrays;
4+
import java.util.HashSet;
5+
6+
public class QueryKnowledgeBase {
7+
8+
public static HashSet<String> sectionNames;
9+
public static HashSet<Character> quoteCharacters;
10+
11+
12+
static {
13+
sectionNames = new HashSet<>(Arrays.asList(
14+
"SELECT",
15+
"FROM",
16+
"WHERE",
17+
"ORDER BY",
18+
"JOIN",
19+
"JOIN LEFT",
20+
"JOIN RIGHT",
21+
"INNER JOIN",
22+
"FULL JOIN",
23+
"FULL OUTER JOIN",
24+
"OUTER JOIN",
25+
"GROUP BY",
26+
"HAVING",
27+
"LIMIT",
28+
"OFFSET"
29+
));
30+
31+
quoteCharacters = new HashSet<>(Arrays.asList(
32+
'`',
33+
'\''
34+
));
35+
}
36+
}

0 commit comments

Comments
 (0)