Skip to content

Implementing ToSql #463

Closed
Closed
@jplatte

Description

@jplatte

Currently, it is necessary to read the source to understand how to implement ToSql. Even then, one has to access #[doc(hidden)] code to keep with the style of the other implementations (is there a reason the to_sql_checked method can't have a default impl, or be part of an extension trait?).

Is it actually discouraged to implement ToSql for types local to ones crate, or is this just something that should be allowed, but nobody has bothered to make it a nice experience?

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