We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Concerning https://github.com/redis/redis-om-python/blob/main/docs/connections.md#connection-objects
Module level imports and creation of redis clients might not be co-routine safe : redis/redis-py#2835
Is it possible to augment providing a redis connection directly, and instead provide a function?
So we might end up with
def redis_provider(...) -> redis.Redis: ... class Customer(HashModel): first_name: str last_name: str age: int class Meta: database_provider = redis_provider
Another use of this would be able to combine with https://github.com/testcontainers/testcontainers-python.
Test containers set a unique/random port per test invocation, so there is no way to configure a module level import
Related:
RedisModel.Meta.database
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Concerning https://github.com/redis/redis-om-python/blob/main/docs/connections.md#connection-objects
Module level imports and creation of redis clients might not be co-routine safe : redis/redis-py#2835
Is it possible to augment providing a redis connection directly, and instead provide a function?
So we might end up with
Another use of this would be able to combine with https://github.com/testcontainers/testcontainers-python.
Test containers set a unique/random port per test invocation, so there is no way to configure a module level import
Related:
RedisModel.Meta.database
at runtime, not import time #519The text was updated successfully, but these errors were encountered: