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

How to cast PgConnection to Connection #745

Closed
redtankd opened this Issue Feb 21, 2017 · 1 comment

Comments

Projects
None yet
2 participants
@redtankd

redtankd commented Feb 21, 2017

I don't like to bind my application to postgres. So I want to cast PgConnection to Connection and store it. How?

Sorry, I am new to Rust.

@sgrif

This comment has been minimized.

Member

sgrif commented Feb 21, 2017

Connection is intentionally not object safe. You can't store a Box<Connection>.

@sgrif sgrif closed this Feb 21, 2017

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment