-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA512 On Wed, Oct 10, 2018 at 03:06:20AM -0700, megaman wrote: > You mentioned SQLAlchemy. Does SQLAlchemy use actual functions/methods over > magic strings to perform the operations?
SQLAlchemy uses operator overloading and function calls in Python to write SQL expressions, yes. If you're interested in details, you can look at the docs: https://docs.sqlalchemy.org/en/latest/orm/query.html#sqlalchemy.orm.query.Query.filter > If so, are we even able to swap out the Django ORM and use SQLAlchemy? Of course, you could decide to not use Django's ORM, and instead use SQLAlchemy, but if you do that, you also lose Django's migrations, model forms, almost all of django.contrib, all the neat test isolation features in django.test, and that's just the things that I can name off the top of my head. I don't think it's a trade-off worth doing if your only reason is that you don't like the kwargs-based API of relationships, expressions, and filters. Michal -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iQIcBAEBCgAGBQJbvgpYAAoJEHA7T/IPM/klaZkP+wTJ+l3p+DPN/KJPAabMKf95 llom243U4TJ1DhWjr/Ca6PrkseCU7ZKN6EY/oCXIy6fGLNHNsRm31HOA5MpHn0PP 2CwcylVr7Gkss7Pt1sz0ighzHSeB48rlKSoqA2YjYF6krP2UV/JtX1ubDmnw8L3q HFEhE5tvl93uZPVUnGlsmIcfd2RWupTeZGiBdfvFNeQX04tUYbsfN9YpZy6OpnHC Fq8yZRSiRnxRARNQjB3YqKCn5Vkcj4xx2fFhe82aeVzhXFblK76QxgPRCEV6fl5t s0FORX3AggxApYmACTN4I3rC7XAHdayM9/BuMesP2eLQurAmXvx4UyPnpAbh8nRn La0oZQcXjGzlb2qzxeBU575Zy869rvZmcVahXEyETYXkPSfjgoIMOVG+xNQoZ2oJ XIhIQyxuCMUR/0UYwibNU+1XygmDLIGZl2dUEkau4yRTUJnr0PC8uXX/Kxmd7KBo 68YdqyOB9spYCyQOWMgUpPGXV33nTFqX2V/b2QsFMUc4QhK5AMNIPkDCYoMxd4vS CJd6jaA++u4kpzurlclSqP4/anTGtF/YSJ1IMEcK+/JGL/GezkM8h3jFS5DnTzOz BgpwHeAjFWteACZ8xuJmWpOJxEtbkrzJUE1HEp0jERE1WyJQfNN3M+KSodJwbIJk QV+X8TdvkIvmUx6wkPFU =GVrx -----END PGP SIGNATURE----- -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscr...@googlegroups.com. To post to this group, send email to django-users@googlegroups.com. Visit this group at https://groups.google.com/group/django-users. To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/20181010141904.GI18928%40koniiiik.org. For more options, visit https://groups.google.com/d/optout.