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

teableio / teable / 8419847094

25 Mar 2024 12:12PM UTC coverage: 26.087% (-53.9%) from 79.94%
8419847094

push

github

web-flow
chore: husky to v9 and upgrade more deps (#494)

2100 of 3363 branches covered (62.44%)

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✔
12
    return new SortFunctionSqlite(this.knex, field);
×
13
  }
×
14

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

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