-
Notifications
You must be signed in to change notification settings - Fork 26
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
get all entities? #35
Comments
i am also happy to help implementing tracing but i am not really an expert on the correct usage of tracing in libs especially when performance is a concern |
hey hayden @hds |
Adding tracing support would be welcome. We can do it incrementally. |
This is not returning anything because this is the API to find many using a batch of IDs. You did not include any IDs so nothing is returned. I am on mobile so I will have to look into how to get all entities later. I know this isn’t supported on all data stores (eg dynamodb) so it will have to be an opt-in api based on target database support. |
So find_many_by_id without IDs should not compile, right? |
It would be nice if it didn't, but I don't know if there is an obvious way to achieve that without complicating the API. Toasty aims for a more straightforward public API at the expense of maximizing type state. Another approach for Song::find_many_by_ids(&[id1, id2, id3]) It would probably have to be a |
Hi i have the following code expecting that i get one entity back which is not the case:
Is this a api misuse by me or a bug in the application?
Also i think having a
Song::find_all()
would make sense from a readability and usability perspectivePS: I know logging is on the roadmap but here having tracing log the executed statement would make it easier to debug
The text was updated successfully, but these errors were encountered: