The congress.datasources.benchmark_driver
Module¶
-
class
congress.datasources.benchmark_driver.
BenchmarkDriver
(name='', keys='', inbox=None, datapath=None, args=None)¶ Bases:
congress.datasources.datasource_driver.PollingDataSourceDriver
-
BENCHTABLE
= 'benchtable'¶
-
TRANSLATORS
= [{'table-name': 'benchtable', 'field-translators': ({'translator': {'translation-type': 'VALUE'}, 'fieldname': 'field1'}, {'translator': {'translation-type': 'VALUE'}, 'fieldname': 'field2'}), 'selector-type': 'DICT_SELECTOR', 'translation-type': 'HDICT'}]¶
-
get_credentials
(*args, **kwargs)¶
-
translator
= {'table-name': 'benchtable', 'field-translators': ({'translator': {'translation-type': 'VALUE'}, 'fieldname': 'field1'}, {'translator': {'translation-type': 'VALUE'}, 'fieldname': 'field2'}), 'selector-type': 'DICT_SELECTOR', 'translation-type': 'HDICT'}¶
-
update_from_datasource
()¶
-
value_trans
= {'translation-type': 'VALUE'}¶
-
-
congress.datasources.benchmark_driver.
d6service
(name, keys, inbox, datapath, args)¶ Create a dataservice instance.
This method is called by d6cage to create a dataservice instance. There are a couple of parameters we found useful to add to that call, so we included them here instead of modifying d6cage (and all the d6cage.createservice calls).