sqltap
sqltap copied to clipboard
JSONB support?
I'm having some problems running sqltap (version 0.3.10) when there is a JSONB field in one of the models.
It doesn't seem to handle dictionaries very well in general..
Is it a known issue? (could not find it reported)
cls = <class 'sqltap.sqltap.QueryStats'>
params = {'allow_supplier_project_creation': False, 'contribution_edit_reacceptance': True, 'contribution_time_enabled': True, 'created_at': datetime.datetime(2017, 8, 4, 12, 38, 46, 131500), ...}
@classmethod
def calculate_params_hash(cls, params):
h = 0
for k in sorted(params.keys()):
> h ^= 10009 * hash(params[k])
E TypeError: unhashable type: 'dict'
After I created this issue I noticed that it was already fixed in master actually (and with the new version), but the new version is not released on pypi. Any plans to release that at some point?
Ditto, a new release of master would be convenient for us!