Arthur Pastel

Results 62 comments of Arthur Pastel

Hello @bcicen, do you think it'd be interesting to add this feature ? I'm really interested to implement this 😉!

Hey thanks for the PR! @Olegt0rr started to work something out a while ago in https://github.com/art049/odmantic/pull/89, I was planning on merging it but as you mentioned the outcome with automatic...

Love this! I have been waiting for this for a long time, really the missing part of DX with pydantic based models I saw pydantic dropped python3.6 in https://github.com/samuelcolvin/pydantic/pull/3605 as...

Hey @joeriddles thanks for the PR ! I unlocked the CI and it seems an issue was created with the new mkdocs release. I fixed it in https://github.com/art049/odmantic/commit/d16edfdb7cb93ce0c9da0473c39c5fbf10727c03 (on master)....

Since motor depends on it, you can add it to the known third party of isort (in the pyproject.toml). It will then be aware that this package should be considered...

Thanks for the amazing initiative @erny, i think we can maybe try to properly define the specs first and then we can check how it would be feasible. For sustainability...

# [Codecov](https://codecov.io/gh/art049/odmantic/pull/1?src=pr&el=h1) Report > Merging [#1](https://codecov.io/gh/art049/odmantic/pull/1?src=pr&el=desc) into [master](https://codecov.io/gh/art049/odmantic/commit/b637deaa3c9bd9762142a7b8fda99017d4e0d7e4&el=desc) will **decrease** coverage by `0.05%`. > The diff coverage is `76.47%`. [![Impacted file tree graph](https://codecov.io/gh/art049/odmantic/pull/1/graphs/tree.svg?width=650&height=150&src=pr&token=3NYZK14STZ)](https://codecov.io/gh/art049/odmantic/pull/1?src=pr&el=tree) ```diff @@ Coverage Diff @@ ## master...

It's not yet possible, here is the current draft of the feature 😃 --- Unique fields ```py class Tree(Model): name: str = Field(unique=True) ``` Regular index ```py class Tree(Model): name:...

Yes actually calling `update_forward_refs()` would be needed while initializing the model. However, it would allow to create cyclic references. This is currently not handled as the references are eager for...

Hi, What kind of behavior would you expect from those attributes ? Should they be persisted in the database ? or ignored ? If you have also a concrete example...