• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

COS301-SE-2024 / Query-Builder / 10076514309

24 Jul 2024 12:20PM UTC coverage: 5.184%. First build
10076514309

Pull #244

github

web-flow
Merge eb12cad68 into bb7c8cc1c
Pull Request #244: Feature/persistent db connection

6 of 59 branches covered (10.17%)

Branch coverage included in aggregate %.

0 of 28 new or added lines in 3 files covered. (0.0%)

152 of 2989 relevant lines covered (5.09%)

0.48 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

0.0
/query-builder-app/src/interfaces/intermediateJSON.ts
1
export interface Query {
×
2
    credentials: DatabaseCredentials,
×
NEW
3
    databaseServerID?: string,
×
4
    queryParams: QueryParams
×
5
}
×
6

×
7
export interface DatabaseCredentials {
×
8
    host: string,
×
9
    user: string,
×
10
    password: string
×
11
}
×
12

×
13
export interface QueryParams {
×
14
    language: string,
×
15
    query_type: string,
×
NEW
16
    databaseName: string,
×
17
    table: table,
×
18
    condition?: condition,
×
19
    sortParams?: SortParams,
×
20
    pageParams?: PageParams
×
21
}
×
22

×
23
export interface table {
×
24
    name: string,
×
25
    columns: column[],
×
26
    join?: join
×
27
}
×
28

×
29
export interface column {
×
30
    name: string,
×
31
    aggregation? : AggregateFunction,
×
32
    alias?: string,
×
33
}
×
34

×
35
export interface join {
×
36
    table1MatchingColumnName: string,
×
37
    table2: table,
×
38
    table2MatchingColumnName: string,
×
39
}
×
40

×
41
export interface condition {
×
42
}
×
43

×
44
export interface compoundCondition extends condition{
×
45
    conditions: condition[],
×
46
    operator: LogicalOperator,
×
47
}
×
48

×
49
export interface primitiveCondition extends condition{
×
50
    value: string | number | boolean | null,
×
51
    tableName?: string,
×
52
    column: string,
×
53
    operator: ComparisonOperator,
×
54
    aggregate?: AggregateFunction
×
55
}
×
56

×
57
export interface SortParams {
×
58
    column: string,
×
59
    direction?: "ascending"|"descending"
×
60
}
×
61

×
62
export interface PageParams {
×
63
    //note pageNumbers are indexed from 1
×
64
    pageNumber: number,
×
65
    rowsPerPage: number
×
66
}
×
67

×
68
export enum AggregateFunction {
×
69
    COUNT = "COUNT",
×
70
    SUM = "SUM",
×
71
    AVG = "AVG",
×
72
    MIN = "MIN",
×
73
    MAX = "MAX",
×
74
}
×
75

×
76
export enum LogicalOperator {
×
77
    AND = "AND",
×
78
    OR = "OR",
×
79
    NOT = "NOT",
×
80
}
×
81

×
82
export enum ComparisonOperator {
×
83
    EQUAL = "=",
×
84
    LESS_THAN = "<",
×
85
    GREATER_THAN = ">",
×
86
    LESS_THAN_EQUAL = "<=",
×
87
    GREATER_THAN_EQUAL = ">=",
×
88
    NOT_EQUAL = "<>",
×
89
    LIKE = "LIKE",
×
90
    IS = "IS",
×
91
    IS_NOT = "IS NOT"
×
92
}
×
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc