SQLAlchemy equivalent to Django x.objects.extra ()?

I just found out about the django (model) .objects.extra () function as described: http://docs.djangoproject.com/en/1.2/ref/models/querysets/#extra

I hope sqlalchemy has something similar. I would like to have the flexibility of raw sql through the cursor, but still my results are returned via ORM.

Can you force the SQL code into your query? (By the way, I use a declarative database)

Thanks in advance

+3
source share
1 answer
+3
source

Source: https://habr.com/ru/post/1783286/


All Articles