cursor = self.conn.execute(query)
for row in cursor:
print("song:", row[0])
My goal is not to return query result, but to see whether the query return value or not. I don't see there is a way to test on the 'cursor' object. Ideally, I would want to see something like:
This is in Python.
if cursor is Empty(None):
print("no result")
else:
print("result founds")
Is there a way to do that?