Skip to content

added parameters support #56

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

Merged
merged 2 commits into from
Nov 15, 2019
Merged

added parameters support #56

merged 2 commits into from
Nov 15, 2019

Conversation

DvirDukhan
Copy link
Contributor

No description provided.

@DvirDukhan DvirDukhan requested a review from swilly22 November 11, 2019 13:37
Comment on lines 110 to 119
if params is not None:
assert type(params) == dict
params_header = "CYPHER "
for key, value in params.items():
if type(value) == str:
value = quote_string(value)
if value is None:
value = "null"
params_header += str(key) + "=" + str(value) + " "
q = params_header + q
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please add a comment explaining this logic.
Consider encapsulating this logic in a separated function.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fixed

for key, value in params.items():
if type(value) == str:
value = quote_string(value)
if value is None:
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

elif

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fixed

@swilly22 swilly22 merged commit 2d5a78d into master Nov 15, 2019
@swilly22 swilly22 deleted the parameters_support branch November 15, 2019 13:59
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

Successfully merging this pull request may close these issues.

2 participants