Skip to content

Add try_from_sqlx_postgres_row_to_proxy_row #2824

@milesgranger

Description

@milesgranger

First, thanks for the nice library, I enjoy using it. :)

One papercut is, as it is now, sea_orm::from_sqlx_postgres_row_to_proxy_row will panic on this line if a type is returned that doesn't find a match:

_ => unreachable!("Unknown column type: {}", c.type_info().name()),

Would be nice(r) if there was a try_from_sqlx_postgres_row_to_proxy_row variant that wouldn't crash but return an error instead, where the given instance may have custom types defined from extension modules in my case.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions