dbbase.model.Model.filter_columns

classmethod Model.filter_columns(column_props, only_props=False, to_camel_case=False)[source]

This function accepts a model class, a list of column properties to of interest. Depending upon the needs, all of the properties for the column can be returned once the desired column property is detected, it can return columns with only those properties.

Usage:
filter_columns(

column_props, only_props=False, to_camel_case=False

)

Parameters
  • column_props – (list) : A list of column properties to search for. Also, the negative can be found, such as !readOnly

  • only_props – (bool) : If True, each selected column will contain only those column_props selected. If False, column_props act as detection system and will return the entire column.

  • to_camel_case – (bool) : converts the column names to camel case