Thanks, it seems to work so far. Basically the 3 line changes in meta.py 
were all what was needed. AFAIK even this is not critical, just needed for 
the mypy typings help.



On Thursday, 24 November 2022 at 20:39:39 UTC+1 mmer...@gmail.com wrote:

> I'm unaware of any incompatibilities with SQLAlchemy 2.0 after reading the 
> upgrade guide pretty extensively when I upgraded to 1.4. Nothing stood out 
> in the changes to me that wouldn't work well with the existing pyramid_tm 
> pattern.
>
> On Nov 24, 2022, at 12:38, zsol...@gmail.com <zsol...@gmail.com> wrote:
>
> Hi,
>
> I'm starting a new project from cookiecutter and I wanted to use 
> SQLAlchemy 2.0 (pre-release currently). 
>
> So far I changed meta.py to 
>
> class Base(DeclarativeBase):
>     metadata = my_metadata
>
> as well as changing the model to the new Mapped / mapped_column syntax.
>
> My question is that is there anything in pyramid_tm, transaction or 
> zope.sqlalchemy packages which needs to be changed, or this was all I 
> needed?
>
> SQLAlchemy changed a *lot* in 2.0, that's why I think the whole 
> transaction related part might be affected.
>
> If it's the case then I'll just go back to 1.4 and wait a year or so till 
> it matures. What do you think?
>
> Zsolt
>
>
>
>
>
> -- 
> You received this message because you are subscribed to the Google Groups 
> "pylons-discuss" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to pylons-discus...@googlegroups.com.
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/pylons-discuss/7db23f68-cdef-42e4-8b71-3279c4db1c61n%40googlegroups.com
>  
> <https://groups.google.com/d/msgid/pylons-discuss/7db23f68-cdef-42e4-8b71-3279c4db1c61n%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"pylons-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to pylons-discuss+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/pylons-discuss/29a98222-b4a1-429a-9ca4-4eb5757fb781n%40googlegroups.com.

Reply via email to