Skip to content

What is the format of 'querySql'? #4

Description

@onezerochang

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions