Skip to content

fromPGS equivalent for toFields #593

@tysonzero

Description

@tysonzero

In general it seems like there are a fair amount of asymmetries between FromFields and ToFields, including the special DefaultFromField class, but the asymmetry I'm most concerned with right now is the lack of a fromPGSToField and/or fromPGSFieldRenderer. It seems like without it I have to reach for unsafeCast or Internal modules to serialize a custom type (in my case for PostGIS types). Perhaps with a tutorial (#592) I'll realize i'm missing something, but after following the types around a bit I'm unsure how to get the results I want without unsafe/Internal functions.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions