Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

tina80lvl
Copy link

No description provided.

larkee and others added 30 commits May 26, 2020 14:09
Release-As: 2.2.a0

Co-authored-by: larkee <[email protected]>
…apis#480)

Add googleapis/python-test-utils and system test stub
fix: Couple of tests are permanently broken while running locally
# Please enter a commit message to explain why this merge is necessary,
# especially if it merges an updated upstream into a topic branch.
#
# Lines starting with '#' will be ignored, and an empty message aborts
# the commit.
Copy link
Collaborator

@IlyaFaer IlyaFaer left a comment

Choose a reason for hiding this comment

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

I still have some comments. @mf2199, could you take a look too?

return self._itr

def fetchone(self):
"""Fetch next resulting row of the last ran query.
Copy link
Collaborator

Choose a reason for hiding this comment

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

Fetch the next resulting row

Copy link
Collaborator

@mf2199 mf2199 left a comment

Choose a reason for hiding this comment

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

I've reviewed the Connection and Cursor classes. The rest can be fixed using similar ideas.

"""The number of rows produced by the last `.execute()`.
:rtype: int
:returns: The number of rows that last .execute*() produced.
Copy link
Collaborator

Choose a reason for hiding this comment

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

:returns: The number of rows produced by the last .execute*().

:param params: A list of parameters.
:rtype: dict
:returns: A dictionary of the name to the list of parameters.
Copy link
Collaborator

Choose a reason for hiding this comment

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

Rephrase, please.

:param params: A list of parameters.
:rtype: list
:returns: A list of tuples of the parameters.
Copy link
Collaborator

Choose a reason for hiding this comment

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

:returns: A properly restructured list of the parameters.

:rtype: str
:returns: A SQL parsed by segments in unicode if initial
SQL is valid, initial string otherwise.
Copy link
Collaborator

Choose a reason for hiding this comment

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

Indentation should match the first description character of the previous line - in this case, A.

:rtype: (str, Any)
:returns: A tuple of the rest expression string and tree of already parsed
expression.
:raises :class:`ProgrammingError`: If there is parsing error.
Copy link
Collaborator

Choose a reason for hiding this comment

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

a parsing error

:param token: An expression token.
:rtype: (str, Any)
:returns: A tuple of the rest expression string and tree of already parsed
Copy link
Collaborator

Choose a reason for hiding this comment

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

A tuple containing the rest of the expression string and the tree of the already parsed

"""Return False if all the arguments have the same length.
:rtype: bool
:return: False if the sequences of arguments have the same length.
Copy link
Collaborator

Choose a reason for hiding this comment

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

the arguments

Comment on lines 112 to 113
:return: True if all the arguments are in pyformat and have the same
number of arguments, False otherwise.
Copy link
Collaborator

Choose a reason for hiding this comment

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

arguments have the same number of arguments?

Rephrase.

:param params: A list of parameters.
:rtype: tuple(str, dict)
:returns: A tuple of sanitized SQL and dictionary of the named arguments.
Copy link
Collaborator

Choose a reason for hiding this comment

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

A tuple of the sanitized SQL and a dictionary of the named arguments.

@IlyaFaer IlyaFaer force-pushed the master branch 3 times, most recently from 1f4932d to 8183247 Compare November 26, 2020 09:52
@IlyaFaer IlyaFaer closed this Feb 1, 2021
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.

5 participants