-
Notifications
You must be signed in to change notification settings - Fork 53
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
Python: adds JSON.ARRINSERT command #2464
base: release-1.2
Are you sure you want to change the base?
Conversation
Signed-off-by: Shoham Elias <[email protected]>
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.
lgtm
@@ -139,6 +139,57 @@ async def get( | |||
return cast(bytes, await client.custom_command(args)) |
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.
changelog?
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.
adding at the end of every pr :)
) -> TJsonResponse[int]: | ||
""" | ||
Inserts one or more values into the array at the specified `path` within the JSON document stored at `key`, before the given `index`. | ||
|
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.
missing the doc link.
See https://redis.io/docs/latest/commands/json.arrinsert/ for more details. |
Apparently, there is no json document on valkey.io
.
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.
we decided to remove it for now, I'll see what we will do on feature freeze since its not a big deal for now
thanks! |
ci is red - rebase? |
For JSONPath (`path` starts with '$'): | ||
Returns a list of integer replies for every possible path, indicating the new length of the array, | ||
or None for JSON values matching the path that are not an array. | ||
If `path` doe not exist, an empty array will be returned. |
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.
If `path` doe not exist, an empty array will be returned. | |
If `path` does not exist, an empty array will be returned. |
Issue link
This Pull Request is linked to issue (URL): #645
Checklist
Before submitting the PR make sure the following are checked: