Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

What is the format of 'querySql'? #4

Open
onezerochang opened this issue Aug 13, 2019 · 0 comments
Open

What is the format of 'querySql'? #4

onezerochang opened this issue Aug 13, 2019 · 0 comments

Comments

@onezerochang
Copy link

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'?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant