Module ImportFrom alias alias alias ClassDef bases NameLoad body Assign NameStore Str Assign NameStore NameLoad FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr keyword Call NameLoad NameLoad Str Str keyword Call NameLoad NameLoad Str Str keyword SubscriptLoad AttributeLoad NameLoad attr Index Num If CompareIsNot AttributeLoad NameLoad attr NameLoad body AugAssignAdd NameStore Call AttributeLoad Str attr AttributeLoad NameLoad attr Return NameLoad decorator_list NameLoad decorator_list ClassDef bases NameLoad body Pass decorator_list ClassDef bases NameLoad body Pass decorator_list ClassDef bases NameLoad body Assign NameStore Str decorator_list ClassDef bases NameLoad body Assign NameStore Str decorator_list FunctionDef arguments args NameParam defaults body If CompareNotIn Str NameLoad body Return Call AttributeLoad NameLoad attr Return Call AttributeLoad SubscriptLoad NameLoad Slice Call AttributeLoad NameLoad attr Str attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str For TupleStore NameStore NameStore Call NameLoad NameLoad body Assign NameStore Call NameLoad NameLoad If CompareEq NameLoad Str body Continue Expr Yield TupleLoad NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body For NameStore ListLoad NameLoad NameLoad NameLoad body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad If NameLoad body Return Call AttributeLoad NameLoad attr NameLoad Assign NameStore Str Raise Call NameLoad Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str If CompareIs NameLoad NameLoad body Assign NameStore Str If Call NameLoad NameLoad NameLoad body Raise Call NameLoad Call AttributeLoad NameLoad attr Str If Call NameLoad NameLoad NameLoad body Raise Call NameLoad Call AttributeLoad NameLoad attr Str decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Assert BoolOpOr CompareIs NameLoad NameLoad Call NameLoad NameLoad NameLoad Assert Call NameLoad NameLoad NameLoad Assert Call NameLoad GeneratorExp Call NameLoad NameLoad NameLoad comprehension NameStore NameLoad Assert Call NameLoad GeneratorExp Call NameLoad NameLoad NameLoad comprehension NameStore NameLoad Assert BoolOpOr CompareIs NameLoad NameLoad CompareIn NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body If CompareNotIn NameLoad NameLoad body Assign NameStore Str Raise Call NameLoad Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body If CompareIn NameLoad NameLoad body Assign NameStore Str Raise Call NameLoad Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body Expr Str Expr Call NameLoad NameLoad NameLoad NameLoad Expr Call NameLoad NameLoad NameLoad If Call NameLoad NameLoad NameLoad body Assign NameStore ListComp AttributeLoad NameLoad attr comprehension NameStore NameLoad Expr Call NameLoad AttributeLoad NameLoad attr NameLoad Str NameLoad Return TupleLoad NameLoad BinOpAdd NameLoad ListLoad NameLoad NameLoad If Call NameLoad NameLoad NameLoad body Assign NameStore ListComp AttributeLoad NameLoad attr comprehension NameStore NameLoad Expr Call NameLoad AttributeLoad NameLoad attr NameLoad Expr Call NameLoad AttributeLoad NameLoad attr NameLoad Return TupleLoad NameLoad NameLoad BinOpAdd NameLoad ListLoad NameLoad If Call NameLoad NameLoad NameLoad body Assign NameStore ListComp AttributeLoad NameLoad attr comprehension NameStore AttributeLoad NameLoad attr Expr Call NameLoad AttributeLoad NameLoad attr NameLoad Str NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Return TupleLoad NameLoad NameLoad NameLoad Assign NameStore Str Raise Call NameLoad Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str With Call NameLoad NameLoad NameStore body Assign NameStore Call AttributeLoad NameLoad attr Return Call NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore NameLoad Assign NameStore ListLoad Assign NameStore ListLoad Assign NameStore ListLoad For TupleStore NameStore NameStore NameStore Call NameLoad NameLoad body TryExcept body Assign NameStore Call NameLoad NameLoad Assign TupleStore NameStore NameStore NameStore Call NameLoad NameLoad NameLoad NameLoad NameLoad handlers ExceptHandler type NameLoad name NameStore body Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad If CompareNotEq Call NameLoad NameLoad Num body Assign NameStore Call AttributeLoad Str attr Call NameLoad NameLoad Raise Call NameLoad BinOpAdd NameLoad Call AttributeLoad Str attr GeneratorExp AttributeLoad NameLoad attr comprehension NameStore NameLoad Return TupleLoad NameLoad NameLoad decorator_list
N/A eralchemy.models Table Relation Column ParsingException N/A Exception N/A N/A base_traceback Error on line {line_nb}: {line}
{error} N/A hint None traceback N/A N/A self N/A N/A N/A rv N/A N/A N/A self base_traceback format line_nb N/A getattr self line_nb ? line N/A getattr self line error N/A N/A self args N/A 0 N/A N/A N/A self hint None N/A N/A rv N/A N/A 
HINT: {} format N/A self hint N/A rv N/A property N/A DuplicateTableException N/A ParsingException N/A N/A N/A DuplicateColumnException N/A ParsingException N/A N/A N/A RelationNoColException N/A ParsingException N/A N/A hint Try to declare the tables before the relationships. N/A NoCurrentTableException N/A ParsingException N/A N/A hint Try to declare the tables before the relationships and columns. N/A remove_comments_from_line N/A N/A line N/A N/A N/A N/A # line N/A N/A N/A N/A line strip N/A N/A N/A N/A line N/A N/A N/A line index # strip N/A filter_lines_from_comments N/A N/A lines N/A N/A N/A  Filter the lines from comments and non code lines.  N/A N/A line_nb raw_line N/A enumerate lines N/A N/A clean_line N/A remove_comments_from_line raw_line N/A N/A clean_line N/A N/A N/A N/A N/A line_nb clean_line raw_line N/A parse_line N/A N/A line N/A N/A N/A typ N/A Table Relation Column N/A N/A match N/A N/A N/A typ RE match line N/A match N/A N/A N/A N/A typ make_from_match match N/A msg Line "{}" could not be parsed to an object. N/A N/A ValueError N/A N/A msg format line N/A _check_no_current_table N/A N/A new_obj current_table N/A N/A N/A  Raises exception if we try to add a relation or a column
    with no current table.  N/A N/A current_table None N/A N/A msg Cannot add {} before adding table N/A N/A isinstance new_obj Relation N/A N/A N/A NoCurrentTableException N/A N/A msg format relation N/A N/A isinstance new_obj Column N/A N/A N/A NoCurrentTableException N/A N/A msg format column N/A _update_check_inputs N/A N/A current_table tables relations N/A N/A N/A N/A N/A current_table None N/A isinstance current_table Table N/A N/A isinstance tables list N/A N/A all N/A N/A isinstance t Table N/A t tables N/A N/A all N/A N/A isinstance r Relation N/A r relations N/A N/A N/A current_table None N/A current_table tables N/A _check_colname_in_lst N/A N/A column_name columns_names N/A N/A N/A N/A column_name columns_names N/A N/A msg Cannot add a relation with column "{}" which is undefined N/A N/A RelationNoColException N/A N/A msg format column_name N/A _check_not_creating_duplicates N/A N/A new_name names type exc N/A N/A N/A N/A new_name names N/A N/A msg Cannot add {} named "{}" which is already present in the schema. N/A N/A exc N/A N/A msg format type new_name N/A update_models N/A N/A new_obj current_table tables relations N/A N/A N/A  Update the state of the parsing.  N/A N/A _update_check_inputs current_table tables relations N/A N/A _check_no_current_table new_obj current_table N/A N/A isinstance new_obj Table N/A N/A tables_names N/A N/A t name N/A t tables N/A N/A _check_not_creating_duplicates N/A new_obj name tables_names table DuplicateTableException N/A N/A new_obj N/A tables N/A new_obj relations N/A N/A isinstance new_obj Relation N/A N/A tables_names N/A N/A t name N/A t tables N/A N/A _check_colname_in_lst N/A new_obj right_col tables_names N/A N/A _check_colname_in_lst N/A new_obj left_col tables_names N/A N/A current_table tables N/A relations N/A new_obj N/A N/A isinstance new_obj Column N/A N/A columns_names N/A N/A c name N/A c N/A current_table columns N/A N/A _check_not_creating_duplicates N/A new_obj name columns_names column DuplicateColumnException N/A N/A N/A N/A current_table columns append new_obj N/A N/A current_table tables relations N/A msg new_obj cannot be of type {} N/A N/A ValueError N/A N/A msg format N/A N/A new_obj __class__ __name__ N/A markdown_file_to_intermediary N/A N/A filename N/A N/A N/A  Parse a file and return to intermediary syntax.  N/A N/A open filename f N/A N/A lines N/A N/A f readlines N/A N/A line_iterator_to_intermediary lines N/A line_iterator_to_intermediary N/A N/A line_iterator N/A N/A N/A  Parse an iterator of str (one string per line) to the intermediary syntax N/A current_table None N/A tables N/A N/A relations N/A N/A errors N/A N/A N/A line_nb line raw_line N/A filter_lines_from_comments line_iterator N/A N/A N/A N/A new_obj N/A parse_line line N/A N/A current_table tables relations N/A update_models new_obj current_table tables relations N/A N/A N/A ParsingException N/A e N/A N/A N/A e line_nb line_nb N/A N/A e line raw_line N/A N/A N/A errors append e N/A N/A N/A len errors 0 N/A N/A msg N/A N/A ERAlchemy couldn't complete the generation due the {} following errors format N/A len errors N/A N/A ParsingException N/A msg N/A N/A join N/A N/A e traceback N/A e errors N/A N/A tables relations N/A