Alexander Tischenko

Results 10 comments of Alexander Tischenko

Hello. What do you mean by `fruit` lambda argument? Is it current object? Some attributes' values are unknown before you insert. If you want highly rely on other attrubutes there...

Hello. What are you talking about is migration. You can either recreate all entities (drop all tables) or try to migrate by your own (with raw sql). Pony doesn't support...

Hello, Inside `before_update` you can use something like this ```python for attr, bit_value in obj._bits_.items(): if attr.reverse and isinstance(attr, Set): continue if bit_value & obj._wbits_: old_value = obj._dbvals_.get(attr) new_value =...

Hello! Thanks for such big work. It is really helpful. I will check in a few days if it work and we probably will use it.

Hello! The correct usage in your case would be either ``` select(t for t in ReplyTemplate).order_by(lambda t: desc(t.id)).get_sql() ``` or ``` select(t for t in ReplyTemplate).order_by(desc(ReplyTemplate.id)) ```

Hello @hadim! Sorry for a long reply, and it's probably no longer relevant for you but we plan to continue work on this after next release.

Hello! You can watch it here https://docs.ponyorm.org/api_reference.html?highlight=size#cmdoption-arg-size

Hello. It means you use `db.bind` twice or more in your code. You can recreate `Database` instance for each test.

Yes, something like this ``` def is_bound(db): return db.provider is not None ```