gavo.protocols.obscore module

Helpers for dealing with obscore-published tables and its view.

gavo.protocols.obscore.restoreObscore(connection)[source]

sees if this system should have an obscore table and re-creates it if it’s missing.

gavo.protocols.obscore.suspendFromObscore(rd, connection)[source]

a context manager to remove everything within rd from obscore in the controlled block.

This is a good idea when doing larger operations in the RD, as a singled locked table (e.g., while clustering) in ivoa.obscore will lock the whole thing.

This will commit the connection, once before entering the controlled block, and once after, if there actually are obscore-published tables in RD.