Skip to content

Conversation

mkfreeman
Copy link
Contributor

Exports the __table function for use in the Observable Data Table and SQL cells.

@mkfreeman mkfreeman requested a review from mbostock November 16, 2022 15:05
Copy link
Member

@mbostock mbostock 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 we shouldn’t export this under the name __table; that (internal) name was chosen for parity with __query, and the name __query was chosen because it needs to be exposed to notebooks (so that we can call it from the compiled representation of a SQL or data table cell).

But that’s not the case with __table. It’s never called directly from notebooks, so we don’t need to give it a dunderscore name.

Maybe a big clunky name like applyDataTableOperations?

@mkfreeman mkfreeman requested a review from mbostock November 16, 2022 23:20
@mkfreeman
Copy link
Contributor Author

Love a big clunky name (and thanks for the background context on the name)

@mkfreeman mkfreeman merged commit c8c153c into main Nov 16, 2022
@mkfreeman mkfreeman deleted the mkfreeman/export__table branch November 16, 2022 23:44
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