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

Attribute has a Context member and Builder like the other structs, and add a bunch more getters/setters for Attribute and Schema #7

Merged
merged 3 commits into from
Mar 19, 2024

Conversation

rroelke
Copy link
Member

@rroelke rroelke commented Mar 19, 2024

This adds a bunch more pretty-much-straightforward methods to the Attribute and Schema classes.

Along the way we also stylize the Attribute struct in a manner similar to Schema, Domain, and Dimension. We split off a Builder class for the setter methods to construct a new Attribute and add a &'ctx Context member to make all of the methods more convenient.

This surely conflicts with #6 which we should merge first.

@rroelke rroelke requested a review from davisp March 19, 2024 01:31
@rroelke rroelke changed the title Attribute has a Context member and Builder like the other structs Attribute has a Context member and Builder like the other structs, and add a bunch more getters/setters for Attribute and Schema Mar 19, 2024
@rroelke rroelke force-pushed the rr/attribute-schema-getters branch 2 times, most recently from 237773f to d9a2484 Compare March 19, 2024 18:10
Copy link
Collaborator

@davisp davisp left a comment

Choose a reason for hiding this comment

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

+1 I rather like that Builder pattern.

@rroelke rroelke force-pushed the rr/attribute-schema-getters branch from d9a2484 to a7f52be Compare March 19, 2024 18:28
@rroelke rroelke merged commit 19d91a2 into main Mar 19, 2024
1 check passed
@rroelke rroelke deleted the rr/attribute-schema-getters branch March 19, 2024 18:30
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