Closed trim21 closed 2 years ago
Could you give link for that?
do you mean translate
?
Yes
didn't find doc about this, but it's raised in the exception message
OK
Maybe it's a undefined behavior? What ever, it would be better if we can use enum value directly.
Fixed
I'm trying to build a query like this
Table.column == TopicState.TOPIC_STATE_NONE
, but I got aValueError
TypeError: Argument 'value' has incorrect type (expected str, got TopicState)
To avoid this, I need to
Table.column == TopicState.TOPIC_STATE_NONE.value
to get enum's underlying value.In aiomysql, I can add a method
translate(self, _escape_table)
to support any type, is there any way in asyncmy we can do this?