Files
Chromy/chromy/handlers/query.py
T

10 lines
275 B
Python
Raw Normal View History

from __future__ import annotations
2026-04-21 17:42:37 +02:00
2026-04-22 15:47:46 +02:00
from chromy.utilities import format_query_result, print_lines, run_query
2026-04-21 17:42:37 +02:00
2026-04-22 22:14:26 +02:00
def handle_query(collection: str, query_text: str) -> int:
result = run_query(collection, query_text)
2026-04-21 17:42:37 +02:00
print_lines(format_query_result(result))
return 0