swh.objstorage.backends.winery.rwshard module#

class swh.objstorage.backends.winery.rwshard.RWShard(name, application_name=None, **kwargs)[source]#

Bases: Database

property lock#

Return an arbitrary unique number for pg_advisory_lock when creating tables

property name#
is_full()[source]#
drop()[source]#
property database_tables#

Return the list of CREATE TABLE statements for all tables in the database

total_size()[source]#
add(obj_id, content)[source]#
get(obj_id)[source]#
delete(obj_id)[source]#
all()[source]#
count()[source]#