def folders(self):
sql = '''select name from folders'''
with benchmark("DB Folders"):
with self.pg.cursor(cursor_factory=NamedTupleCursor) as folder_cursor:
folder_cursor.execute(sql, [])
return [f.name for f in folder_cursor.fetchall()]
评论列表
文章目录