8000 support for postgresql 'inet' data type in attribute type? · Issue #749 · ponyorm/pony · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

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

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

Open
netllama opened this issue May 26, 2025 · 0 comments
Open

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

netllama opened this issue May 26, 2025 · 0 comments

Comments

@netllama
Copy link

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant
0