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

feat: Implementing DB-API types according to the PEP-0249 specification #521

Merged
merged 9 commits into from Oct 4, 2020

Conversation

mf2199
Copy link
Contributor

@mf2199 mf2199 commented Sep 30, 2020

The proposed changes represent reworked types.py in accordance with the PEP-0249 Type Objects and Constructors specifications.

Some of the classes implemented prior to the alpha release are not part of the DB-API standards. Those were left in for now but may be removed later in the GA release.

@google-cla google-cla bot added the cla: yes This human has signed the Contributor License Agreement. label Sep 30, 2020
@mf2199 mf2199 added api: spanner Issues related to the googleapis/python-spanner-django API. type: feature request ‘Nice-to-have’ improvement, new feature or different behavior or design. kokoro:force-run Add this label to force Kokoro to re-run the tests. labels Sep 30, 2020
@mf2199 mf2199 marked this pull request as ready for review September 30, 2020 02:31
@mf2199 mf2199 requested a review from a team as a code owner September 30, 2020 02:31
@mf2199 mf2199 removed the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Sep 30, 2020
This object describes (long) binary columns in a database (e.g. LONG, RAW, BLOBS).
"""
def _time_from_ticks(ticks, tz=None):
"""A helper method used to construct a DB-API time value.
Copy link
Contributor

Choose a reason for hiding this comment

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

I think we should first add system tests for these types, before merging. As they are gonna be used to convert data from user types to the Spanner types, we better check how it's working in the case close to the real.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@IlyaFaer Reverted to the previous convention, PTAL.

@mf2199 mf2199 added the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Sep 30, 2020
@yoshi-kokoro yoshi-kokoro removed the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Sep 30, 2020
@mf2199 mf2199 added the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Sep 30, 2020
@yoshi-kokoro yoshi-kokoro removed the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Sep 30, 2020
@mf2199 mf2199 requested a review from skuruppu October 1, 2020 01:30
@mf2199 mf2199 added the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Oct 1, 2020
@yoshi-kokoro yoshi-kokoro removed the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Oct 1, 2020
@mf2199 mf2199 added the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Oct 2, 2020
@yoshi-kokoro yoshi-kokoro removed the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Oct 2, 2020
Copy link
Contributor

@skuruppu skuruppu left a comment

Choose a reason for hiding this comment

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

I think this change is reasonable and looks a lot cleaner now. Just to have another pair of eyes, I'll add @larkee as a reviewer but if this is urgent, feel free to merge.

@skuruppu skuruppu requested a review from larkee October 2, 2020 11:27
@mf2199 mf2199 merged commit 62c22b1 into googleapis:master Oct 4, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
api: spanner Issues related to the googleapis/python-spanner-django API. cla: yes This human has signed the Contributor License Agreement. type: feature request ‘Nice-to-have’ improvement, new feature or different behavior or design.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants