trw.reporting.reporting_bokeh_tabs_dynamic_data

Module Contents

Classes

TableChangedDectector

Detect when a table has been updated by watching at the number of rows, columns and content of specific

TabsDynamicData

Helper class to manage updates of the underlying SQL data for a given table

Functions

create_aliased_table(connection, name, aliased_table_name)

get_data_normalize_and_alias(options, connection, name)

Retrieve data from SQL, normalize the data and resolve aliasing (

Attributes

logger

trw.reporting.reporting_bokeh_tabs_dynamic_data.logger
trw.reporting.reporting_bokeh_tabs_dynamic_data.create_aliased_table(connection, name, aliased_table_name)
trw.reporting.reporting_bokeh_tabs_dynamic_data.get_data_normalize_and_alias(options, connection, name)

Retrieve data from SQL, normalize the data and resolve aliasing (

Returns

tuple (data, types, type_categories, alias)

class trw.reporting.reporting_bokeh_tabs_dynamic_data.TableChangedDectector(connection, table_name)

Detect when a table has been updated by watching at the number of rows, columns and content of specific rows (first).

__call__(self)
class trw.reporting.reporting_bokeh_tabs_dynamic_data.TabsDynamicData(doc, options, connection, name, role, creator_fn)

Bases: trw.reporting.bokeh_ui.BokehUi

Helper class to manage updates of the underlying SQL data for a given table

update(self, options, connection, name, tabs)