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

teableio / teable / 8389227144

22 Mar 2024 10:56AM UTC coverage: 26.087% (-53.9%) from 79.937%
8389227144

push

github

web-flow
refactor: move zod schema to openapi (#487)

2100 of 3363 branches covered (62.44%)

282 of 757 new or added lines in 74 files covered. (37.25%)

14879 existing lines in 182 files now uncovered.

25574 of 98035 relevant lines covered (26.09%)

5.17 hits per line

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

40.91
/apps/nestjs-backend/src/db-provider/sort-query/sqlite/sort-query.sqlite.ts
1
import type { IFieldInstance } from '../../../features/field/model/factory';
1✔
2
import { AbstractSortQuery } from '../sort-query.abstract';
1✔
3
import { MultipleDateTimeSortAdapter } from './multiple-value/multiple-datetime-sort.adapter';
1✔
4
import { MultipleJsonSortAdapter } from './multiple-value/multiple-json-sort.adapter';
1✔
5
import { MultipleNumberSortAdapter } from './multiple-value/multiple-number-sort.adapter';
1✔
6
import { JsonSortAdapter } from './single-value/json-sort.adapter';
1✔
7
import { StringSortAdapter } from './single-value/string-sort.adapter';
1✔
8
import { SortFunctionSqlite } from './sort-query.function';
1✔
9

1✔
10
export class SortQuerySqlite extends AbstractSortQuery {
1✔
11
  booleanSort(field: IFieldInstance): SortFunctionSqlite {
1✔
UNCOV
12
    return new SortFunctionSqlite(this.knex, field);
×
UNCOV
13
  }
×
14

1✔
15
  numberSort(field: IFieldInstance): SortFunctionSqlite {
1✔
UNCOV
16
    const { isMultipleCellValue } = field;
×
UNCOV
17
    if (isMultipleCellValue) {
×
UNCOV
18
      return new MultipleNumberSortAdapter(this.knex, field);
×
UNCOV
19
    }
×
UNCOV
20
    return new SortFunctionSqlite(this.knex, field);
×
UNCOV
21
  }
×
22
  dateTimeSort(field: IFieldInstance): SortFunctionSqlite {
1✔
UNCOV
23
    const { isMultipleCellValue } = field;
×
UNCOV
24
    if (isMultipleCellValue) {
×
UNCOV
25
      return new MultipleDateTimeSortAdapter(this.knex, field);
×
UNCOV
26
    }
×
UNCOV
27
    return new SortFunctionSqlite(this.knex, field);
×
UNCOV
28
  }
×
29

1✔
30
  stringSort(field: IFieldInstance): SortFunctionSqlite {
1✔
UNCOV
31
    const { isMultipleCellValue } = field;
×
UNCOV
32
    if (isMultipleCellValue) {
×
33
      return new SortFunctionSqlite(this.knex, field);
×
34
    }
×
UNCOV
35
    return new StringSortAdapter(this.knex, field);
×
UNCOV
36
  }
×
37
  jsonSort(field: IFieldInstance): SortFunctionSqlite {
1✔
UNCOV
38
    const { isMultipleCellValue } = field;
×
UNCOV
39
    if (isMultipleCellValue) {
×
UNCOV
40
      return new MultipleJsonSortAdapter(this.knex, field);
×
UNCOV
41
    }
×
42
    return new JsonSortAdapter(this.knex, field);
×
43
  }
×
44
}
1✔
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