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

add custom __repr__ to ermrest model classes #184

Merged
merged 1 commit into from
Oct 3, 2024
Merged

Conversation

karlcz
Copy link
Contributor

@karlcz karlcz commented Oct 1, 2024

This extends the repr(obj) behavior slightly to expose schema, table, column, and constraint name string content:

  • <deriva.core.ermrest_model.Schema object 'S' at 0x00000000>
  • <deriva.core.ermrest_model.Table object 'S'.'T' at 0x00000000>
  • <deriva.core.ermrest_model.Column object 'S'.'T'.'C' at 0x00000000>
  • <deriva.core.ermrest_model.Key object 'S'.'CN' at 0x00000000>
  • <deriva.core.ermrest_model.ForeignKey object 'S'.'CN' at 0x00000000>

@karlcz karlcz merged commit 414d66b into master Oct 3, 2024
@karlcz karlcz deleted the model_repr_methods branch October 3, 2024 15:42
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.

1 participant