You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am doing some work in Qt and creating a Model (as in Model-View-Controller) and the code is generic
I want to make primary key columns non-editable.... what is the best way to find this out?
This is a special case of the general features that would be nice to have access to... by this I mean access to the meta information of the storage object and its subobjects for enabling or making it possible to write code that takes advantage of this information'
(for instance whether a column is part of a primary key)...
The text was updated successfully, but these errors were encountered:
sqlite_orm itself needs to access this kind of meta information for its machinery to work, so there are internal (meta) functions.
E.g. look at table_t<>::for_each_primary_key_column(), which passes object fields to a lambda.
Currently you either have to access internal functions or create your own that work with internal classes.
If you find a good way to access or collect meta information, it might be worth making it available in the public namespace.
I am doing some work in Qt and creating a Model (as in Model-View-Controller) and the code is generic
I want to make primary key columns non-editable.... what is the best way to find this out?
This is a special case of the general features that would be nice to have access to... by this I mean access to the meta information of the storage object and its subobjects for enabling or making it possible to write code that takes advantage of this information'
(for instance whether a column is part of a primary key)...
The text was updated successfully, but these errors were encountered: