sgrif / diesel.rs-website

MIT License
34 stars 98 forks source link

Feature Request: impl<'a, Parent, Child> BelongingToDsl<(&'a [Parent], &'a [Parent])> for Child #193

Closed Bajix closed 1 year ago

Bajix commented 1 year ago

I authored stack-queue specifically so that I could create a data loader that integrates with Diesel. The current design only batches contiguous slices and simply starts a new batch whenever a task batch would otherwise wrap around to the beginning, however I could make this support wrap-around batching by returning an ordered pair of slices instead. The only way I could make this work and still integrate with BelongingToDsl without creating an intermediary Vec would be for BelongingToDsl to impl<'a, Parent, Child> BelongingToDsl<(&'a [Parent], &'a [Parent])> for Child

weiznich commented 1 year ago

This is the repository of the diesel webside, not the main diesel repository. Please move feature requests for diesel here