-
Notifications
You must be signed in to change notification settings - Fork 18
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
docs: added documentations for raw query #82
Open
nekomeowww
wants to merge
4
commits into
clusterpedia-io:main
Choose a base branch
from
nekomeowww:dev/docs-raw-query
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Signed-off-by: Neko Ayaka <neko@ayaka.moe>
nekomeowww
force-pushed
the
dev/docs-raw-query
branch
from
January 15, 2024 10:40
a65f7fc
to
5fb2d19
Compare
Signed-off-by: Neko Ayaka <neko@ayaka.moe>
windsonsea
approved these changes
Jan 24, 2024
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks.
Signed-off-by: Neko Ayaka <neko@ayaka.moe>
Iceber
reviewed
Jan 24, 2024
| `whereSQLStatement` | `string` | SQL 语句的 `WHERE` 子句正文。可直接替换现有的 `whereSQL` 字段。通过使用 `?` 作为参数占位符(与 GORM 兼容),允许调用方更安全地发送原生 SQL 查询。 | | ||
| `whereSQLParam` | `string`,`string[]` | 将在 SQL 语句的 `WHERE` 子句中使用的 SQL 语句的实际参数。此字段仅在设置了 `whereSQLStatement` 时有效,否则将被忽略。 | | ||
| `whereSQLJSONParams` | `any[]` | 工作原理与 `whereSQLParam`相同,但在使用 `IN` 或 `JSON` 操作符时,调用方可以通过这个参数发送数组和更复杂的参数。支持任意的 JSON 数组字符串,并且由于查询字符串不能包含 `[]`(方括号),因此需要进行 `base64` 编码。该字段仅在设置了 `whereSQLStatement` 时有效,否则将被忽略。 | | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
可以加一个 whereSQLParam 和 whereSQLJSONParam 同时传递的描述
Signed-off-by: Neko Ayaka <neko@ayaka.moe>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Documentation for clusterpedia-io/clusterpedia#597