Supporting pydantic custom root models as columns
Resolves #7
the approach was to wrap the model around a custom type similar to the SQLAlchemy documentation example .
although i thought about using hypothesis but it will introduce another dependency so i just typed arbitrary values for the tests since i didnt care about the individual values but their types.
So now it is possible to use pydantic custom root type models as column types.
there are some types that do not work with sqlite so i made pytest skip them
Status on the merge of this? It's quite crucial.
Status on the merge of this? It's quite crucial.
I figure a good strategy now is to just merge what you need in your own fork. I suppose tiangolo checks these when he has time, but there's a long list so I wouldn't wait with anything crucial.
Thanks @5cat and everyone, let's switch first to the discussion in https://github.com/tiangolo/sqlmodel/issues/7, I need to understand the use case and why this would be needed/wanted.