Skip to content

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 4 times, most recently from f1d61fd to f09dc2e Compare December 4, 2024 22:50
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.

3 participants