pysimplesql icon indicating copy to clipboard operation
pysimplesql copied to clipboard

Table.description_field should be done dynamically

Open PySimpleSQL opened this issue 4 years ago • 1 comments

The description field (shown inside of comboboxes for example) is stored inside of the Table. It is set once on Table creation via add_table, or Database.auto_add_tables.

It presents a problem on dynamic queries, as the field name may not yet be known until the dynamic query occurs.

We need to either make description_field a property or a method, which dynamically returns the field ('name' if it exists, or 2nd column). This should fix issues where dynamic queries are concerned.

PySimpleSQL avatar May 06 '21 19:05 PySimpleSQL

references #12

PySimpleSQL avatar May 06 '21 19:05 PySimpleSQL