-
Notifications
You must be signed in to change notification settings - Fork 0
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
Add role parameter #1
base: master
Are you sure you want to change the base?
Conversation
trino/client.py
Outdated
def _format_roles(self, roles): | ||
def _format_roles(self, role, roles): | ||
if role and roles: | ||
raise ValueError("specify 'role' or 'roles' parameter, but not both") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
raise ValueError("specify 'role' or 'roles' parameter, but not both") | |
raise ValueError("specify either 'role' or 'roles' parameter, but not both") |
trino/dbapi.py
Outdated
@@ -131,6 +132,7 @@ def __init__( | |||
transaction_id=NO_TRANSACTION, | |||
extra_credential=extra_credential, | |||
client_tags=client_tags, | |||
role=role, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Move to last field to not break compatiblity
e8a6445
to
e886aba
Compare
e886aba
to
1319a18
Compare
README.md
Outdated
host='localhost', | ||
port=443, | ||
user='the-user', | ||
roles="roleC" # equivalent to {"system": "roleC"} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would avoid mixing uppercase and lowercase in the example.
1319a18
to
026e36f
Compare
Description
Non-technical explanation
Release notes
( ) This is not user-visible or docs only and no release notes are required.
( ) Release notes are required, please propose a release note for me.
( ) Release notes are required, with the following suggested text: