Install
openclaw skills install postgres-dbClawHub Security found sensitive or high-impact capabilities. Review the scan results before using.
PostgreSQL 数据库操作技能。用于执行SQL查询、表管理、备份恢复、性能监控等数据库操作。触发条件:用户提到 PostgreSQL、postgres、数据库查询、SQL查询、表结构、数据库备份等。
openclaw skills install postgres-dbThis skill provides comprehensive PostgreSQL database operations including query execution, schema management, backup/restore, and performance monitoring.
scripts/query.py)Execute SQL queries against PostgreSQL databases with support for:
scripts/schema_export.py)Export database schema information:
scripts/backup.py)Database backup and restore operations:
Monitor database performance:
python scripts/query.py --dbname mydb --query "SELECT * FROM users LIMIT 10"
python scripts/schema_export.py --dbname mydb --output schema.json
python scripts/backup.py --dbname mydb --backup-dir /backups
Set environment variables:
PGHOST - Database hostPGPORT - Database port (default: 5432)PGDATABASE - Database namePGUSER - Database userPGPASSWORD - Database password