sql查询添加过滤方法方便操作
Open
- Dominant language
- PHP
- Stars
- 20
- Forks
- 18
- PR merge metrics
- No merged PRs in 30d
Description
Hyperf\Database\Query\Builder 添加 whereFilter方法 过滤空
Hyperf\Database\Model\Builder 添加 whereFilter方法 过滤空
在参数为空时 此字段不参与sql查询 类似Yii2的andFilterWhere 方便点
Contributor guide
No contributing guide indexed for this repository
Research direction
Start by locating Hyperf\Database\Query\Builder and Hyperf\Database\Model\Builder, then compare their query APIs with Yii2's andFilterWhere behavior. Verify how empty parameters are represented and add focused tests showing that empty values are excluded from SQL while non-empty filters remain active.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- php
- Domain
- databases
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 48/100