diff options
Diffstat (limited to 'bitbake/lib/hashserv/sqlalchemy.py')
| -rw-r--r-- | bitbake/lib/hashserv/sqlalchemy.py | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/bitbake/lib/hashserv/sqlalchemy.py b/bitbake/lib/hashserv/sqlalchemy.py index 818b51951b..cee04bffb0 100644 --- a/bitbake/lib/hashserv/sqlalchemy.py +++ b/bitbake/lib/hashserv/sqlalchemy.py | |||
| @@ -415,3 +415,13 @@ class Database(object): | |||
| 415 | } | 415 | } |
| 416 | 416 | ||
| 417 | return usage | 417 | return usage |
| 418 | |||
| 419 | async def get_query_columns(self): | ||
| 420 | columns = set() | ||
| 421 | for table in (UnihashesV2, OuthashesV2): | ||
| 422 | for c in table.__table__.columns: | ||
| 423 | if not isinstance(c.type, Text): | ||
| 424 | continue | ||
| 425 | columns.add(c.key) | ||
| 426 | |||
| 427 | return list(columns) | ||
