sqlalchemy-imageattach
sqlalchemy-imageattach copied to clipboard
Partitioned storages
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)
+1