Skip to content

Commit

Permalink
Add dependency for SQLAlchemy.
Browse files Browse the repository at this point in the history
  • Loading branch information
JoeStrout committed Jan 10, 2025
1 parent 86dd651 commit 0f5f664
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -162,6 +162,9 @@ skeletonization = [
slurm = [
"simple_slurm",
]
sql = [
"SQLAlchemy >= 2.0.36",
]
tensor-ops = [
"zetta_utils[tensor_typing]",
"tinybrain",
Expand Down
2 changes: 1 addition & 1 deletion scripts/cave_db_sql.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ def format_value(value: Any, column_name: str) -> str:
def print_results(result: Result, batch_size: int = 20) -> None:
"""Print query results in a paginated table format."""
try:
if result.returns_rows: # type: ignore[attr-defined]
if result.returns_rows: # type: ignore
rows = result.fetchall()
if not rows:
print("Query returned no results.")
Expand Down

0 comments on commit 0f5f664

Please sign in to comment.