fit_or_root_class

View page source

Get Tables Corresponding to a Fit Node

fit_or_root_class

fit_or_root = fit_or_root_class(fit_database, root_database)

fit_database

This str is the name of a fit_database .

root_database

This str is the name of a root_database .

get_table

table = fit_or_root.get_table(table_name)

table_name

This str the name of the table that we are getting.

table

This is a list of dict representation of the table. If table_name is a constant table , table is retrieved from the root node database. Otherwise it is retrieved from the fit node database.

null_row

row = fit_or_root.null_row(table_name)

table_name

This str the name of the table that we getting a null row for.

row

is a dict with one key for every column in the table specified by table_name and all the values equal to None .

close

fit_or_root.close()

This closes the database connection held by a fit_or_root. The get_table function will no longer be available.