Skip to content

[问题咨询]如何只返回explain执行结果? #805

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
Xuxin19960702 opened this issue Mar 27, 2025 · 1 comment
Open

[问题咨询]如何只返回explain执行结果? #805

Xuxin19960702 opened this issue Mar 27, 2025 · 1 comment

Comments

@Xuxin19960702
Copy link

Description

http://apijson.cn:8080/get/{"[]":{"Moment":{"@explain":true}}}

但会一并返回查询结果。但我只想先要explain的结果,再决定要不要实际查询。

实际代码如下:

Image

@TommyLemon
Copy link
Collaborator

在 DemoParser 重写 executeSQL,复制 super 代码,自己改下逻辑

https://github.com/Tencent/APIJSON/blob/master/APIJSONORM/src/main/java/apijson/orm/AbstractParser.java#L2057-L2130
Image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants