Use execute_read for explain query plan.
This commit is contained in:
parent
dcb051bcc7
commit
b4ec72fb53
1 changed files with 1 additions and 1 deletions
|
@ -338,7 +338,7 @@ class Database(metaclass=abc.ABCMeta):
|
||||||
return (row is not None)
|
return (row is not None)
|
||||||
|
|
||||||
def explain(self, query, bindings=None) -> str:
|
def explain(self, query, bindings=None) -> str:
|
||||||
exp = self.execute('EXPLAIN QUERY PLAN ' + query, bindings)
|
exp = self.execute_read('EXPLAIN QUERY PLAN ' + query, bindings)
|
||||||
return '\n'.join(str(tuple(x)) for x in exp.fetchall())
|
return '\n'.join(str(tuple(x)) for x in exp.fetchall())
|
||||||
|
|
||||||
def get_object_by_id(self, object_class, object_id):
|
def get_object_by_id(self, object_class, object_id):
|
||||||
|
|
Loading…
Reference in a new issue