On Thu, Oct 26, 2017 at 9:35 PM,  <[email protected]> wrote:
> Hello,
>
> I'm looking for a way track changes to table rows, very much like described
> in this Stackoverflow question.
>
> SA supports versioning objects as described in the documentation:
> http://docs.sqlalchemy.org/en/latest/orm/examples.html#versioning-objects
> Does this approach work for inherited classes as well?

yes it does, there should be some coverage for joined inheritance in the tests.


> I mean: can I version
> a class which doesn't have a table but is a subclass of a joined table
> inheritance?

that would be single table inheritance if it doesn't have a table.
the test suite has both a multilevel-joined test and a single
inheritance test, doesn't seem to have tested joined inh to single but
it's likely it will just work if you try it out.

> Or will I need to version the base class which has the table
> associated (something I'd like to avoid because I'd version much of what
> would not need versioning).

I'm not sure if the versioning example tries this but the Versioned
mixin can be placed just on the class you care about versioning, and
it's likely it will just take effect when that class is present.   The
Versioned mixin should be able to deal with each class independently
of all the rest.   You'd need to try it out and see what it does.



>
> Then there is SA Continuum, which seems more flexible but perhaps a little
> too much for my needs.

It's possible that Continuum was based on this example in the first
place but I would never remember if that detail is real or just made
up by my imagination.


> With projects like Continuum I'm always a bit worried
> about support and maintenance—any experiences with it? Does that support
> table inheritance?

You could reach out to its maintainer (the username that posts it to
pypi, and /or the user that seems to have the most commits).  If you
don't get a reply, that's a clue :)




>
> Thanks!
> Jens
>
> --
> SQLAlchemy -
> The Python SQL Toolkit and Object Relational Mapper
>
> http://www.sqlalchemy.org/
>
> To post example code, please provide an MCVE: Minimal, Complete, and
> Verifiable Example. See http://stackoverflow.com/help/mcve for a full
> description.
> ---
> You received this message because you are subscribed to the Google Groups
> "sqlalchemy" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To post to this group, send email to [email protected].
> Visit this group at https://groups.google.com/group/sqlalchemy.
> For more options, visit https://groups.google.com/d/optout.

-- 
SQLAlchemy - 
The Python SQL Toolkit and Object Relational Mapper

http://www.sqlalchemy.org/

To post example code, please provide an MCVE: Minimal, Complete, and Verifiable 
Example.  See  http://stackoverflow.com/help/mcve for a full description.
--- 
You received this message because you are subscribed to the Google Groups 
"sqlalchemy" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/sqlalchemy.
For more options, visit https://groups.google.com/d/optout.

Reply via email to