swh.objstorage.backends.winery.sharedbase module#

class swh.objstorage.backends.winery.sharedbase.SharedBase(**kwargs)[source]#

Bases: Database

uninit()[source]#
property lock#

Return an arbitrary unique number for pg_advisory_lock when creating tables

property database_tables#

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

property whoami#
property id#
set_whoami()[source]#
lock_a_shard()[source]#
lock_shard(name)[source]#
unlock_shard()[source]#
create_shard()[source]#
shard_packing_starts()[source]#
shard_packing_ends(name)[source]#
get_shard_info(id)[source]#
list_shards()[source]#
contains(obj_id)[source]#
get(obj_id)[source]#
add_phase_1(obj_id)[source]#
add_phase_2(obj_id)[source]#