mirror of
https://github.com/simonw/sqlite-utils.git
synced 2026-07-27 19:34:32 +02:00
Applied black
This commit is contained in:
parent
893e30e903
commit
e6cb34e348
1 changed files with 3 additions and 1 deletions
|
|
@ -118,7 +118,9 @@ class Database:
|
|||
def tables(self) -> List["Table"]:
|
||||
return [self[name] for name in self.table_names()]
|
||||
|
||||
def execute_returning_dicts(self, sql: str, params: Union[Dict, Tuple, List]=None) -> List[Dict]:
|
||||
def execute_returning_dicts(
|
||||
self, sql: str, params: Union[Dict, Tuple, List] = None
|
||||
) -> List[Dict]:
|
||||
cursor = self.conn.execute(sql, params or tuple())
|
||||
keys = [d[0] for d in cursor.description]
|
||||
return [dict(zip(keys, row)) for row in cursor.fetchall()]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue