def _exec_query(self, query, qvalues=[], **kw):
        # Should I add a switch to prevent setting transform_null_equals to on?
        _check_args('_exec_query', kw.keys(), ('debug_print','debug_assert'))
        query = "set transform_null_equals to on; " + query
        qvalues = _flatten(qvalues)
        if kw.get('debug_print', False):
            print(self.cursor.mogrify(query if isinstance(query, str) else query.encode('utf8'), qvalues))
        if kw.get('debug_assert', False):
            assert False, self.cursor.mogrify(query if isinstance(query, str) else query.encode('utf8'), qvalues)
        self.cursor.execute(query, qvalues)
Returns a Datastream object from a mapping object (dict).
dataset/ETHPy150Open cjauvin/little_pger/little_pger.py/LittlePGer._exec_query--crossover with--dataset/ETHPy150Open xively/xively-python/xively/managers.py/DatastreamsManager._coerce_datastream