#!/bin/bash
# Verify database state - check table counts and data integrity
# Usage: ./test_db_state.sh [db_path]
# Default: uses test.duckdb (read-only)
DB_PATH=""
if [; then
fi
# Run multiple queries in single session
results=
# Extract counts
datasets=
locations=
clusters=
files=
file_dataset=
moth_metadata=
orphaned=
# Print results
# Check integrity
if [; then
||
else
||
fi
if [ || [; then
||
else
||
fi
||
if [; then
fi