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

teableio / teable / 10280481691

07 Aug 2024 08:04AM CUT coverage: 17.272% (-0.5%) from 17.728%
10280481691

Pull #721

github

web-flow
Merge da07cce18 into 6131ee284
Pull Request #721: feat: sql query

1388 of 2842 branches covered (48.84%)

25 of 2297 new or added lines in 45 files covered. (1.09%)

1 existing line in 1 file now uncovered.

14099 of 81628 relevant lines covered (17.27%)

1.72 hits per line

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

0.0
/packages/sdk/src/components/base-query/context/QueryFormContext.tsx
NEW
1
import { noop } from 'lodash';
×
NEW
2
import { createContext } from 'react';
×
NEW
3
import type { QuerySortedKeys } from '../constant';
×
NEW
4

×
NEW
5
export type IQueryValidatorKey = (typeof QuerySortedKeys)[number];
×
NEW
6

×
NEW
7
export interface IQueryFormContext {
×
NEW
8
  validators: Record<IQueryValidatorKey, (() => boolean) | undefined>;
×
NEW
9
  registerValidator: (key: IQueryValidatorKey, fn?: () => boolean) => void;
×
NEW
10
}
×
NEW
11

×
NEW
12
export const QueryFormContext = createContext<IQueryFormContext>({
×
NEW
13
  validators: {
×
NEW
14
    join: undefined,
×
NEW
15
    select: undefined,
×
NEW
16
    groupBy: undefined,
×
NEW
17
    orderBy: undefined,
×
NEW
18
    where: undefined,
×
NEW
19
    limit: undefined,
×
NEW
20
    offset: undefined,
×
NEW
21
    aggregation: undefined,
×
NEW
22
  },
×
NEW
23
  registerValidator: noop,
×
NEW
24
});
×
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

© 2025 Coveralls, Inc