Skip to content

added list/array support #43

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 5 commits into from
Sep 5, 2019
Merged

added list/array support #43

merged 5 commits into from
Sep 5, 2019

Conversation

DvirDukhan
Copy link
Contributor

added basic array support

@DvirDukhan DvirDukhan requested a review from swilly22 August 1, 2019 05:22
@@ -33,6 +33,10 @@ def test_graph_creation(self):
self.assertEqual(visit.properties, edge.properties)
self.assertEqual(country, japan)

query = """RETURN [1, 2.3, "4", true, false, null]"""
Copy link
Contributor

Choose a reason for hiding this comment

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

Include a sub-array within this array.

scalar = float(value)

elif scalar_type == ResultSetScalarTypes.PROPERTY_UNKNOWN:
elif scalar_type == ResultSetScalarTypes.VALUE_ARRAY:
scalar = value
Copy link
Contributor

Choose a reason for hiding this comment

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

Consider renaming value to array for clarity

Copy link
Contributor Author

Choose a reason for hiding this comment

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

done


self.assertEqual([a, b], result.result_set[0][0])


Copy link
Contributor

Choose a reason for hiding this comment

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

Remove extra line

@swilly22 swilly22 merged commit 76246ba into master Sep 5, 2019
@swilly22 swilly22 deleted the array_support branch September 5, 2019 08:15
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