-
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.STRLEN, JSON.STRAPPEND commands #2372
base: release-1.2
Are you sure you want to change the base?
Conversation
For more information about the returned type, see `TJsonResponse`. | ||
|
||
Examples: | ||
>>> from glide import json as redisJson |
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.
>>> from glide import json as redisJson | |
>>> from glide import json |
remove or rename alias everywhere
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.
Yeah you're right
""" | ||
Appends the specified `value` to the string stored at the specified `path` within the JSON document stored at `key`. | ||
|
||
See https://redis.io/commands/json.strapped/ for more details. |
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.
See https://redis.io/commands/json.strapped/ for more details. | |
See https://redis.io/commands/json.strappend/ for more details. |
client (TRedisClient): The Redis client to execute the command. | ||
key (TEncodable): The key of the JSON document. | ||
value (TEncodable): The value to append to the string. Must be wrapped with single quotes. For example, to append "foo", pass '"foo"'. | ||
path (Optional[TEncodable]): The JSONPath to specify. Default is root `$`. |
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.
path (Optional[TEncodable]): The JSONPath to specify. Default is root `$`. | |
path (Optional[TEncodable]): Represents the path within the JSON document where the string value will be appended. Default is root `$`. |
To be consistent. Although, this description is much too verbose. I'd prefer that we go with something concise that mirrors the command description, like:
Path within the JSON document. If not specified, the root (`$`) is used.
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.
fixed all of them, added Default to None. since the documentation say its $
but its actually .
so I better not specify whats exactly it is
|
||
Examples: | ||
>>> from glide import json as redisJson | ||
>>> import json |
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.
you also have json
here, and you use json.dump
.
b7e5396
to
ad92730
Compare
Signed-off-by: Shoham Elias <[email protected]>
ad92730
to
1ae938b
Compare
replaced #1187