Package gavo :: Package user :: Module importing :: Class TableCollector
[frames] | no frames]

Class TableCollector

source code

                object --+    
                         |    
base.observer.ObserverBase --+
                             |
                            TableCollector

collects the qualified names of tables changed.

This is used to run vacuum analyze on the respective tables before the import exits; the the vacuumAll method of this class can do that once all importing connections are closed (even if an Observer shouldn't do a thing like that...)

Instance Methods
 
__init__(self, eh)
x.__init__(...) initializes x; see help(type(x)) for signature
source code
 
addChangedTable(self, fqName) source code
 
vacuumAll(self) source code

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Properties

Inherited from object: __class__

Method Details

__init__(self, eh)
(Constructor)

source code 

x.__init__(...) initializes x; see help(type(x)) for signature

Overrides: object.__init__
(inherited documentation)

addChangedTable(self, fqName)

source code 
Decorators:
  • @base.listensTo("DBTableModified")