You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello. I have two questions regarding StringEncryptedType:
Is there any possibility in future versions to replace the checking of value in the process_bind_param and process_result_value methods from
ifvalueisnotNone:
to simply
ifvalue:
This is because I have a field that cannot be null but can be an empty string, and when an empty string is passed to query, it still gets encrypted/decrypted and stored in the database as a hash. I would prefer it to remain empty in such cases.
Is there a way to avoid applying the process_bind_param and/or process_result_value methods when building a query? This is needed to retrieve raw (input) data when constructing a query through SQLAlchemy.
For example:
Hello. I have two questions regarding
StringEncryptedType
:Is there any possibility in future versions to replace the checking of value in the
process_bind_param
andprocess_result_value
methods fromto simply
This is because I have a field that cannot be null but can be an empty string, and when an empty string is passed to query, it still gets encrypted/decrypted and stored in the database as a hash. I would prefer it to remain empty in such cases.
Is there a way to avoid applying the
process_bind_param
and/orprocess_result_value
methods when building a query? This is needed to retrieve raw (input) data when constructing a query through SQLAlchemy.For example:
Instead of the query:
I would like to get:
Alternatively, is it possible to retrieve encrypted data from the database instead of decrypted values when querying?
I hope my questions are clear. Thank you in advance for your response!
The text was updated successfully, but these errors were encountered: