Package londiste :: Module installer
[frames] | no frames]

Source Code for Module londiste.installer

 1   
 2  """Functions to install londiste and its depentencies into database.""" 
 3   
 4  import os, skytools 
 5   
 6  __all__ = ['install_provider', 'install_subscriber'] 
 7   
 8  provider_object_list = [ 
 9      skytools.DBFunction('logtriga', 0, sql_file = "logtriga.sql"), 
10      skytools.DBFunction('get_current_snapshot', 0, sql_file = "txid.sql"), 
11      skytools.DBSchema('pgq', sql_file = "pgq.sql"), 
12      skytools.DBSchema('londiste', sql_file = "londiste.sql") 
13  ] 
14   
15  subscriber_object_list = [ 
16      skytools.DBSchema('londiste', sql_file = "londiste.sql") 
17  ] 
18   
19 -def install_provider(curs, log):
20 """Installs needed code into provider db.""" 21 skytools.db_install(curs, provider_object_list, log)
22
23 -def install_subscriber(curs, log):
24 """Installs needed code into subscriber db.""" 25 skytools.db_install(curs, subscriber_object_list, log)
26