sqlalchemy-imageattach icon indicating copy to clipboard operation
sqlalchemy-imageattach copied to clipboard

Partitioned storages

Open dahlia opened this issue 12 years ago • 1 comments

Sometimes image files should be spread to two or more physical stores by their object_type. We could implement partitioned storage that implements Store interface e.g.:

PartitionedStore([
    ('user_picture', user_store),
    (re.compile(r'^comic_'), comic_store),
    (['post_attachment', 'comment_attachment'], forum_store)
], default=default_store)

dahlia avatar Jun 18 '13 20:06 dahlia

+1

peterlada avatar Jul 01 '14 01:07 peterlada