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

Enums in Postgres #478

Closed
tredoe opened this Issue Oct 13, 2016 · 1 comment

Comments

Projects
None yet
2 participants
@tredoe

tredoe commented Oct 13, 2016

I would want to know if postgres' enums are supported? To be able of manage them like:

CREATE TYPE user_status AS ENUM ('on', 'off');

CREATE TABLE profile (
    id INT PRIMARY KEY,
    status user_status
);
enum UserStatus {
    On,
    Off,
}

#[derive(Queryable)]
pub struct UserInfo {
    pub user_id: i32,
    pub status: UserStatus,
}
@killercup

This comment has been minimized.

Member

killercup commented Oct 13, 2016

Sorry, they are currently not supported.

There is an issue tracking this here: #343

@killercup killercup closed this Oct 13, 2016

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