based on business requirement, we need to get the data from PostgreSQL document based database in python
PostgreSQL:
select info from "spyConfig" where info @> '{"type" : "processmap"}';
its working as expected in postgresql interface, same query i want to execute in python.
cur.execute("SELECT info FROM spyConfig WHERE info @> %s",
{'type':'processmap'})
its not working in python, even i want to pass table as parameter, i have tried here and research on it but its not working in python. please give me suggestion to solve this and let me know if any details to add here, i will update as need, Thanks.