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

Our core CRUD functions should be in a more convenient namespace #93

Closed
sgrif opened this Issue Jan 13, 2016 · 0 comments

Comments

Projects
None yet
1 participant
@sgrif
Member

sgrif commented Jan 13, 2016

I basically want to write diesel::insert(&foo).into(bar). This means that we need to stop recommending importing diesel::*, and instead move most of our traits into diesel::prelude::*

@sgrif sgrif closed this in 963222f Jan 13, 2016

tomhoule pushed a commit to tomhoule/diesel that referenced this issue Jan 13, 2016

Move our types around, add a prelude module.
This might move around a little bit more, but I want to just be able to
write `diesel::update`, the `use` statements for those functions are
really common and quite noisy. This means that we need to stop
recommending glob importing the top level, and give something to be glob
imported.

I *think* I want to re-export the prelude from the top level, but I'm
not 100% certain. An alternative would be to export some of our structs
from the prelude as well.

Fixes diesel-rs#93
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment