Skip to content

support for postgresql 'inet' data type in attribute type? #749

@netllama

Description

@netllama

I've got a PostgreSQL-16 database that has a table that is uses the inet data type ( https://www.postgresql.org/docs/current/datatype-net-types.html#DATATYPE-INET ).

I see that Pony doesn't explicitly support that type for attributes in an entity. However, I think I can easily work around it by specifying str instead and also using the py_check attribute option to enforce that the value is really an IP address.

Is this a reasonable solution, or am I missing some obvious potential problem?

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