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

First order data DTOs #40

Open
newtectonics opened this issue Apr 5, 2022 · 1 comment
Open

First order data DTOs #40

newtectonics opened this issue Apr 5, 2022 · 1 comment
Labels
DTO DTO class enhancement New feature or request

Comments

@newtectonics
Copy link
Contributor

Does it make sense to have first order data DTOs?

tx = Transaction(hash=TX_HASH)

Could then have derivitive properties like

tx.traces

tx.block

and we could add

BlockNumber(123456789).block

and the like.

@iwyrkore iwyrkore added enhancement New feature or request DTO DTO class labels May 4, 2022
@iwyrkore
Copy link
Collaborator

@newtectonics This seems to imply that all fields for a data object would need to be fetched? (I assume it would fetch the "traces", "block" etc. on demand when you access the property.) Snowflake is not optimized for retrieving more fields than you actually need.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
DTO DTO class enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants