liquidgenius

Results 15 comments of liquidgenius

Possibly include [Beanie](https://roman-right.github.io/beanie/) which seems like an excellent candidate in that it extends Motor and Pydantic and works well with FastApi.

One caveat; in Python 3, if using Jupyter iPython kernel, insert ordering of a regular dict is not respected, so OrderedDict is still useful. I experienced this issue recently. Ref:...

I ended up here looking at how to find the last record. Docs and issues don't have info on this. Thanks for the direction. Using the code from this issue...

@mborus this is one way of doing a bulk_upsert, though it has the internal overhead of requiring a select for each record. (maybe someone can improve on that?) It could...

Relevant SO discussion concerning SQLAlchemy's facility to accomplish upserts. [How to do an upsert with SqlAlchemy?](https://stackoverflow.com/questions/7165998/how-to-do-an-upsert-with-sqlalchemy)

Another relevant SO answer in the same question. This one is interesting because it adds functionality to the model at time of definition. I imagine building something like this that...

Given this is a few months later, there may have been improvements in SQLModel. The following seems to work by importing col and explicitly wrapping the column before using contains....

So far, this seems to be the best question/answer on self-referential tables for SQLModel. With all the versions and edits it seems unclear as to what the final "simple" working...

I've bountied the SO question for the next 7 days, any answers would be appreciated. https://stackoverflow.com/questions/54201921/in-python-how-to-set-soapheaders-for-zeep-using-dictionaries

This method shows in comments some of the approaches I have tried: ```python def get_pager(self, page: int = 1, per_page: int = 100): """ Create non-namespaced header element that contains...