Closed D3fau4 closed 1 month ago
As we discussed on discord, when using sqltools if you connect it to a MySQL server it gives error when trying to serialize a datetime field and this could be easily avoided by giving a default when serializing the results to json.
return json.dumps(self.run_sql(sql=query, limit=limit), default=str)
As we discussed on discord, when using sqltools if you connect it to a MySQL server it gives error when trying to serialize a datetime field and this could be easily avoided by giving a default when serializing the results to json.