Skip to content

Customizable table name and schema

Étienne BERSAC requested to merge bersace/dramatiq-pg:schema into master

Fixes: #3 (closed)

@FunkyBob, Here is a solution : allow code to customize tablename, including schema.

Relying on search path is difficult as stated here : https://stackoverflow.com/questions/32812463/setting-schema-for-all-queries-of-a-connection-in-psycopg2-getting-race-conditi

Thus, I prefer to build query. Since dramatiq-pg schema is simple that's fair.

I don't want to document this more. Django extension could configure PostgresBroker tablename according to what your migrations creates.

What do you think of this ?

Edited by Étienne BERSAC

Merge request reports