django-sharding icon indicating copy to clipboard operation
django-sharding copied to clipboard

Adding additional arguments to databases

Open M1ha-Shvn opened this issue 6 years ago • 1 comments

Hi How to add additional arguments to database_configs? To be concrete, I use pgbouncer and want to add DISABLE_SERVER_SIDE_CURSORS parameter. How can I achieve it without hacky:

for db in DATABASES.values():
    db['DISABLE_SERVER_SIDE_CURSORS'] = True

M1ha-Shvn avatar Sep 17 '18 11:09 M1ha-Shvn

We can update the function to allow you to pass additional options?

JBKahn avatar Sep 18 '18 21:09 JBKahn