How do I access a variable inside to_tsquery
I need to execute a postgresql command in python where to_tsquery is the input taken from the user
Python-3.4.3 Getting-started-with-IPython 00-01 min 0-10 sec
Answers:
You can use the Psycopg module to connect to your PostGreSQL DB and then run any queries. Please check https://pynative.com/python-postgresql-tutorial/