Ah ok, sorry. I'll give your code a closer look then. On Tuesday, May 2, 2017 at 6:45:23 PM UTC-7, Mike Bayer wrote: > > Well, I just pasted the example from that email I wrote, it still seems > to work, and "typemap" is just a local variable to that example, nothing > is "deprecated" there since that isn't part of SQLAlchemy. There is a > deprecated parameter named "typemap" that's part of the > sqlalchemy.text() construct, but that's not the "typemap" used in the > composite example from my email, that's just something that happens to > have the same name. > > > > On 05/02/2017 05:01 PM, Zac Goldstein wrote: > > Thanks for your response Mike. I submitted an issue to the > > sqlalchemy-utils github around the time I made my SO post. Mostly > > though I'm interested in finding a way around using 'typemap', which is > > what's used in every implementation of composite columns I can find. > > e.g. the code you have suggested in the past uses it as > > well https://groups.google.com/d/msg/sqlalchemy/f9BPVHfdvbg/M88ruLo6lzQJ > > > > On Tuesday, May 2, 2017 at 12:57:38 PM UTC-7, Mike Bayer wrote: > > > > just a note that I'm not sure there are sqlalchemy-utils people > here, > > you might want to try pinging Konsta via > > https://github.com/kvesteri/sqlalchemy-utils > > <https://github.com/kvesteri/sqlalchemy-utils> > > > > > > > > On 05/02/2017 02:10 PM, Zac Goldstein wrote: > > > Hello, > > > > > > I'm having some difficulty implementing postgres composite > columns. > > > I've been working off of the sqlalchemy-utils implementation: > > > > > > http://sqlalchemy-utils.readthedocs.io/en/latest/_modules/sqlalchemy_utils/types/pg_composite.html > > > < > http://sqlalchemy-utils.readthedocs.io/en/latest/_modules/sqlalchemy_utils/types/pg_composite.html>. > > > > > > > I've also looked at relevant posts here, but they all break > > down at > > > the same point. > > > > > > Specifically, all the implementations I have found use 'typemap' > > in the > > > ___getattr__ function, but 'typemap' is now deprecated, and I'm > > having > > > trouble properly resolving attribute lookups. More details in my > SO > > > post: > > > http://stackoverflow.com/questions/43727685/sqlalchemy-postgres-composite-type-column > > > < > http://stackoverflow.com/questions/43727685/sqlalchemy-postgres-composite-type-column>. > > > > > > > > > > Thanks > > > > > > > > > > > > -- > > > 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 > > <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 <javascript:> > > > <mailto:sqlalchemy+unsubscr...@googlegroups.com <javascript:> > <javascript:>>. > > > To post to this group, send email to sqlal...@googlegroups.com > > <javascript:> > > > <mailto:sqlal...@googlegroups.com <javascript:>>. > > > Visit this group at https://groups.google.com/group/sqlalchemy > > <https://groups.google.com/group/sqlalchemy>. > > > For more options, visit https://groups.google.com/d/optout > > <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+...@googlegroups.com <javascript:> > > <mailto:sqlalchemy+unsubscr...@googlegroups.com <javascript:>>. > > To post to this group, send email to sqlal...@googlegroups.com > <javascript:> > > <mailto:sqlal...@googlegroups.com <javascript:>>. > > 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.