On Mon, Feb 19, 2018 at 2:22 AM, Andrew Pashkin <andrew.pash...@gmx.co.uk> wrote: > Mike, are you open to to making sqlalchemy.orm.composite to accept keyword > arguments to use for instantiation of the class? In that case - what > signature should it have?
Feel free to add keyword arguments to your composite just note they won't be persisted unless they are also the positional arguments that you've mapped. > > On Monday, February 19, 2018 at 1:03:07 AM UTC+3, Mike Bayer wrote: >> >> This would be a composite: >> >> http://docs.sqlalchemy.org/en/latest/orm/composites.html >> >> >> On Feb 18, 2018 4:25 PM, "Andrew Pashkin" <andrew....@gmx.co.uk> wrote: >>> >>> I wonder if it's possible to have a field in a declarative model that >>> would have relationship semantics but at the same time would be linked to a >>> set of columns from the same row as the parent object and load the >>> relationship without an additional join? >>> >>> -- >>> 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 sqlalchemy+...@googlegroups.com. >>> To post to this group, send email to sqlal...@googlegroups.com. >>> 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 sqlalchemy+unsubscr...@googlegroups.com. > To post to this group, send email to sqlalchemy@googlegroups.com. > 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 sqlalchemy+unsubscr...@googlegroups.com. To post to this group, send email to sqlalchemy@googlegroups.com. Visit this group at https://groups.google.com/group/sqlalchemy. For more options, visit https://groups.google.com/d/optout.