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

DM-46527: Add client methods for waiting for data to land in ConsDB #122

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

mfisherlevine
Copy link
Contributor

No description provided.

@mfisherlevine mfisherlevine force-pushed the tickets/DM-46527 branch 2 times, most recently from 0cae013 to 9c59b2b Compare October 29, 2024 01:18
@mfisherlevine mfisherlevine force-pushed the tickets/DM-46527 branch 3 times, most recently from 232593d to f1d61fd Compare December 3, 2024 00:30
yalsayyad
yalsayyad approved these changes Dec 5, 2024
raise ValueError(f"Query {query} returned more than one row")
assert len(result) == 1, "Somehow no rows came back, which should be impossible"
row = result[0]
if item not in row.columns:
Copy link
Collaborator

Choose a reason for hiding this comment

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

I wasn't sure what you meant by "item" (in the doc string and method name) until I got to this row. In a relational database, the intersection of a column and a row is sometimes called a "field" and the contents are the field value. Sometimes a column itself is called a "field" (or "attribute"). You could probably go with "value", "field value", "field."

From what I can tell the input parameter is "column"/"attribute" flavored and the return is a "field"/"value"/"fieldValue" flavored.

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