Great to know! About the warnings, I'm on 2.0 and it works, so either some of those RemovedIn20Warning are not removed or none of them are left.
I mean I rewrote my queries to 2.0 style, but I've read that 1.x style queries will continue to work, they are just removed from the documentation now. For cookiecutter I recommend changing to using DeclarativeBase and Mapped + mapped_column in the model, once 2.0 is released. Zsolt On 27. Nov 2022 at 19:02:33, Jonathan Vanasco <[email protected]> wrote: > There was one potential incompatibility with transaction, but the > zope.sqlalchemy team addressed it already ( see > https://github.com/zopefoundation/zope.sqlalchemy/issues/60 ). There are > deprecation warnings that are still unhandled ( see > https://github.com/zopefoundation/zope.sqlalchemy/pull/64 ) but > everything else should be fine. > > Most of the 2.0 sqlalchemy changes are in the engine and query systems, > and pretty isolated from the support the cookiecutter and zope.sqlalchemy > provide. > On Thursday, November 24, 2022 at 1:38:01 PM UTC-5 [email protected] > 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 a topic in the > Google Groups "pylons-discuss" group. > To unsubscribe from this topic, visit > https://groups.google.com/d/topic/pylons-discuss/sDMJlpQQedM/unsubscribe. > To unsubscribe from this group and all its topics, send an email to > [email protected]. > To view this discussion on the web visit > https://groups.google.com/d/msgid/pylons-discuss/bb45eb53-c263-4d35-af74-60691ca010d5n%40googlegroups.com > <https://groups.google.com/d/msgid/pylons-discuss/bb45eb53-c263-4d35-af74-60691ca010d5n%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 [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/pylons-discuss/CAKw-smB15UqAWVmdnUQAkeiO_CR1eLYYgHkWi7Naeb61TAvAJw%40mail.gmail.com.
