( msSinceEpoch: number, context: Context, table: 'firstReview' | 'review' | 'note' | 'card' | undefined, column: 'created' | 'edited' | 'due', node: QueryString, )
| 850 | } |
| 851 | |
| 852 | function handleComparison( |
| 853 | msSinceEpoch: number, |
| 854 | context: Context, |
| 855 | table: 'firstReview' | 'review' | 'note' | 'card' | undefined, |
| 856 | column: 'created' | 'edited' | 'due', |
| 857 | node: QueryString, |
| 858 | ) { |
| 859 | if (node.comparison === '=') { |
| 860 | context.trustedSql('(') |
| 861 | handleOneComparison(msSinceEpoch, context, table, column, '>=') |
| 862 | context.trustedSql('AND') |
| 863 | handleOneComparison(msSinceEpoch + dayInMs, context, table, column, '<') |
| 864 | context.trustedSql(')') |
| 865 | } else { |
| 866 | handleOneComparison(msSinceEpoch, context, table, column, node.comparison) |
| 867 | } |
| 868 | } |
| 869 | |
| 870 | function handleOneComparison( |
| 871 | val: number, |
no test coverage detected