Skip to content

[ 功能建议 ]SQL查询页面mongo支持//模糊查询 #1129

@dbcmp

Description

@dbcmp

目前遇到的问题/使用障碍

image

企业微信截图_16257367639470

希望如何解决/实现它

image

其他信息

将engines/mongo.py 165行修改为if (ch == '"' and start_ch == '"') or (ch == "'" and start_ch == "'") or (ch == "/" and start_ch == "/"):
在engines/mongo.py 237行增加
elif ch in ("/"): # 当字符为/模糊查询
cur_token = {'$regex': self.__next_string()}
可临时支持//正则的模糊查询,期待作者更完善的正则支持,感谢

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions