Commit f2b82d0
committed
MB-70691: allow extractddl to filter functions by bucket
- When a bucket filter is specified, only return scoped functions
belonging to that bucket; exclude global functions. Global functions
are still included when no filter is specified.
- Strip surrounding backticks from the filter parameter so that
backtick-quoted bucket names (e.g. `travel-sample`) are handled
correctly.
- Update test files to add new test cases and modify previous ones.
Change-Id: I191c06aa1c940acf183fb564b6ecd68b0ef42e36
Reviewed-on: https://review.couchbase.org/c/query/+/241663
Well-Formed: Restriction Checker
Reviewed-by: Sitaram Vemulapalli <sitaram.vemulapalli@couchbase.com>
Tested-by: Sitaram Vemulapalli <sitaram.vemulapalli@couchbase.com>1 parent e7f1224 commit f2b82d0
2 files changed
Lines changed: 26 additions & 9 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
474 | 474 | | |
475 | 475 | | |
476 | 476 | | |
| 477 | + | |
| 478 | + | |
| 479 | + | |
| 480 | + | |
| 481 | + | |
| 482 | + | |
| 483 | + | |
| 484 | + | |
| 485 | + | |
| 486 | + | |
| 487 | + | |
477 | 488 | | |
478 | 489 | | |
479 | 490 | | |
480 | 491 | | |
481 | 492 | | |
482 | 493 | | |
483 | | - | |
| 494 | + | |
484 | 495 | | |
485 | 496 | | |
486 | 497 | | |
| |||
544 | 555 | | |
545 | 556 | | |
546 | 557 | | |
547 | | - | |
548 | | - | |
| 558 | + | |
| 559 | + | |
549 | 560 | | |
550 | 561 | | |
551 | 562 | | |
| |||
Lines changed: 12 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
9 | | - | |
10 | | - | |
11 | | - | |
12 | | - | |
13 | | - | |
14 | | - | |
15 | 9 | | |
16 | 10 | | |
17 | 11 | | |
| |||
73 | 67 | | |
74 | 68 | | |
75 | 69 | | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
76 | 82 | | |
77 | 83 | | |
78 | 84 | | |
| |||
0 commit comments