updated Mongo Postgres Redis Controllers

This commit is contained in:
2025-04-01 13:37:36 +03:00
parent 5d30bc2701
commit 6b9e9050a2
16 changed files with 1700 additions and 48 deletions

View File

@@ -323,6 +323,9 @@ class RedisActions:
Returns:
Iterator yielding RedisRow objects.
Raises:
RedisValueError: If there's an error processing a row
"""
regex = RedisRow.regex(list_keys=list_keys)
json_get = redis_cli.scan_iter(match=regex)
@@ -346,5 +349,6 @@ class RedisActions:
redis_row.feed(redis_value)
yield redis_row
except Exception as e:
err = e
# Log the error and continue with next row
print(f"Error processing row {row}: {str(e)}")
continue