Hi Andy,
Using read_sql would solve one of my problems, which is to start with
what I have now (data in postgres) and have everything in pandas. So I
could do the whole work in pandas instead of using sql for each
manipulation.
My other problem is that in our applications the data model is fixed.
I would like it to be an input. If the data model is an input I don't
see the reason to store data into a database and to use sql at all. It
is a useless and time-expensive detour. But we still need somehow to
say that things like "each person is associated to one and only one
address and to any number of phone numbers"...
One of the reasons that I would like to have the data model as an
input is that I want to build a more generic application, one that is
not tied to the business needs, which changes all the time. Also it
would be very nice to give the user the possibility to extend an
existing data model, i.e. adding new entitities in the same way that
they change the values.
I believe that the data models we have are not very complex, neither
are the queries. So I am not afraid of being unable to do the
operations with pandas. But I am looking for a way to express the
relationships and the cardinalities.
Thanks!
Marko