Skip to content
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

Json support #2767

Closed
wants to merge 18 commits into from
Closed

Json support #2767

wants to merge 18 commits into from

Conversation

ofekshenawa
Copy link
Collaborator

  • Add support for RedisJSON
  • Add optional args and tests
  • Add more tests
  • Add more tests
  • Add more tests and cleanups
  • Add docstring
  • update JSONArrIndex and matching texts
  • update JSONArrTrim and matching texts
  • update JSONGetWithArgs and matching texts
  • Update JSONSetMode
  • Updated JSONMSet
  • Updated tests for JSONMSet
  • Added stubbed (panicking) implementations of JSON.RESP AND JSON.DEBUG
  • Pre-pull request tidy up
  • Testing fixes

nic-gibson and others added 18 commits September 12, 2023 08:48
Rename JSONArrIndexWithArgs to JSONArrIndexArgs
change name of args struct to match function name for consistency
change arg types to int (for required arg) and *int (for optional)
Rename JSONArrTrimWithArgs to JSONArrTrimArgs
change name of args struct to match function name for consistency
change arg types to int (for required arg) and *int (for optional)
Rename JSONGetWithArgs to JSONGetArgs
Removed Paths & Path from args - redundant and ambiguous
Renamed mispelled "Indention"
Changed args param from pointer to value
Updated and added additional tests for formatting params
changed mode parameter back to string, added value checking for that
string
Changed name of param struct to ...Args  for consistency
Updated arg list to use an array of structs not pointers as
all args are mandatory (we never want to pass a nil parameter)
Renamed xArgs() to xWithArgs to match other Redis modules

Modified params to xWithArgs functions to use a pointer for the
arguments struct to match other Redis modules.

Modified JSONMSet to JSONMSetArgs and added a version that takes
a vararray of args to match the semantics of the native redis call

Updated tests to match above changes.

Renamed some variables in the json tests for consistency
Fixed error in JSONSetWithArgs found during tests
Fixed tests for indentation
# Conflicts:
#	commands.go
@ofekshenawa ofekshenawa marked this pull request as ready for review October 21, 2023 19:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants