-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconstants.ts
41 lines (35 loc) · 1.16 KB
/
constants.ts
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
40
41
import type { AllJoinNames, AllJoinNamesWithoutAliases } from './types';
export const _ = Symbol('_');
export const joinNameToEulerDiagramPartsWithoutAliases = Object.freeze({
leftJoin : '110',
rightJoin : '011',
fullJoin : '111',
innerJoin : '010',
crossJoin : '010',
leftAntiJoin : '100',
rightAntiJoin: '001',
fullAntiJoin : '101',
} as const);
export const joinNameToEulerDiagramParts = Object.freeze({
...joinNameToEulerDiagramPartsWithoutAliases,
leftOuterJoin : '110',
rightOuterJoin : '011',
fullOuterJoin : '111',
join : '010',
simpleJoin : '010',
leftOuterAntiJoin : '100',
rightOuterAntiJoin: '001',
fullOuterAntiJoin : '101',
leftExclusiveJoin : '100',
leftJoinExcludingInner : '100',
rightExclusiveJoin : '001',
rightJoinExcludingInner: '001',
fullExclusiveJoin : '101',
fullJoinExcludingInner : '101',
} as const);
export const joinNamesWithoutAliases = [
...Object.keys(joinNameToEulerDiagramPartsWithoutAliases)
] as readonly AllJoinNamesWithoutAliases[];
export const joinNames = [
...Object.keys(joinNameToEulerDiagramParts)
] as readonly AllJoinNames[];