manager = DBManager(db_type=constant.DB_TYPE['POSTGRES'],
username='xxxxxxx',
password='xxxxx',
host='xxxxx',
port=xxxxx,
database='xxxxx',
querySql="select * from table1"
)
refer to the definition to access PostgreSQL, I used the above to create DBManager, but when I execute 'manager.execute_query()', there is an error noticed that the type of querySql should be 'dict'
then, I modified the statement as 'querySql="{query: select * from table1}"' , it cant work with other error information.
can you give me a real example of how to set the param of 'querySql'?
manager = DBManager(db_type=constant.DB_TYPE['POSTGRES'],
username='xxxxxxx',
password='xxxxx',
host='xxxxx',
port=xxxxx,
database='xxxxx',
querySql="select * from table1"
)
refer to the definition to access PostgreSQL, I used the above to create DBManager, but when I execute 'manager.execute_query()', there is an error noticed that the type of querySql should be 'dict'
then, I modified the statement as 'querySql="{query: select * from table1}"' , it cant work with other error information.
can you give me a real example of how to set the param of 'querySql'?