0

I have data I'm loading into PostgreSQL with SQLAlchemy Core. The data is in SQL. It contains JSON which looks like the param syntax in SQLAlchemy, i.e. :foo.

How do I execute the SQL in a way that's truly raw, i.e. with no parsing of its contents for params or anything else?

Alternately, how do I escape the string to get the literals into PostgreSQL around the SQLAlchemy text() parser?

jennykwan
  • 2,631
  • 1
  • 22
  • 33
  • Possible duplicate of [Avoid Parameter Binding When Executing Query with SQLAlchemy](https://stackoverflow.com/questions/49902843/avoid-parameter-binding-when-executing-query-with-sqlalchemy) – J.J. Hakala Feb 21 '19 at 00:40
  • Please include a sample of the SQL you're trying to execute, and how you're executing it. – Ilja Everilä Feb 21 '19 at 06:21

0 Answers0