redis / redis-om-python

Object mapping, and more, for Redis and Python
MIT License
1.06k stars 108 forks source link

support late creation of DB connection using callable for Meta.database #543

Open dansan opened 11 months ago

dansan commented 11 months ago

Fix for #519:

So now, when your database address is not known at import time, you set Meta.database to a function object that fetches that information at runtime, as late as possible (upon DB usage).

svabra commented 11 months ago

This is a big relief. Works ...

Thanks. Hope this get's merged asap.