Commit 823fbfc
Fix global filter with wildcard columns (#66)
- Implement `resolveQueryColumns` in `WasmDatabaseEngine` to dynamically fetch column names when `columns` is `['*']` and `globalFilter` is used.
- Update `fetchTableData` and `fetchTableCount` to use `resolveQueryColumns`.
- Add unit tests in `tests/unit/sqlite-db.test.ts` to verify the fix.
Co-authored-by: google-labs-jules[bot] <161369871+google-labs-jules[bot]@users.noreply.github.com>1 parent aa82aa5 commit 823fbfc
3 files changed
Lines changed: 52 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
549 | 549 | | |
550 | 550 | | |
551 | 551 | | |
| 552 | + | |
| 553 | + | |
| 554 | + | |
| 555 | + | |
| 556 | + | |
| 557 | + | |
| 558 | + | |
| 559 | + | |
| 560 | + | |
| 561 | + | |
| 562 | + | |
552 | 563 | | |
553 | 564 | | |
554 | 565 | | |
| |||
691 | 702 | | |
692 | 703 | | |
693 | 704 | | |
694 | | - | |
| 705 | + | |
| 706 | + | |
| 707 | + | |
| 708 | + | |
695 | 709 | | |
696 | 710 | | |
697 | 711 | | |
| |||
727 | 741 | | |
728 | 742 | | |
729 | 743 | | |
730 | | - | |
| 744 | + | |
| 745 | + | |
| 746 | + | |
| 747 | + | |
731 | 748 | | |
732 | 749 | | |
733 | 750 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
80 | 80 | | |
81 | 81 | | |
82 | 82 | | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
83 | 114 | | |
0 commit comments