db-explorer
Installation
SKILL.md
Database Explorer
QueryCraft가 사용하는 하이브리드 데이터베이스 시스템(PostgreSQL + DuckDB)을 탐색합니다.
Instructions
- 스키마 및 테이블 목록 조회:
-
scripts/run_task.py list를 통해 명령어를 확인하거나psql,duckdbCLI를 우회적으로 활용합니다. -
PostgreSQL 테이블 목록:
export PYTHONPATH=$PYTHONPATH:$(pwd) python -c "from backend.engine.postgres_engine import PostgresEngine; from backend.config.db import PostgresEnv; pg=PostgresEngine(PostgresEnv().dsn()); print(pg.fetch_df('SELECT table_name FROM information_schema.tables WHERE table_schema=\'public\''))"
-