PySimpleSQL / pysimplesql

SQLite3 binding for PySimpleGUI
GNU Lesser General Public License v3.0
47 stars 16 forks source link

Table.description_field should be done dynamically #17

Open PySimpleSQL opened 3 years ago

PySimpleSQL commented 3 years ago

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 commented 3 years ago

references #12