highgo-db

通过瀚高数据库(HighGo DB)提供的自定义 psycopg2 驱动连接数据库。该驱动已内置于技能中,支持 Python 2.7 和国密 SM4 安全特性。

Safety Notice

This listing is from the official public ClawHub registry. Review SKILL.md and referenced scripts before running.

Copy this and send it to your AI assistant to learn

Install skill "highgo-db" with this command: npx skills add ygp987/highgo-db

瀚高数据库 (HighGo DB) 连接技能

此技能允许使用瀚高提供的修改版 psycopg2 驱动连接瀚高数据库。该驱动已内置在技能的 assets/driver/ 目录下。

注意:内置驱动是针对 Python 2.7 编译的,必须在 Python 2.7 环境下运行。

核心功能

  1. 执行 SQL 语句: 在瀚高数据库中运行查询或管理指令。
  2. 内置驱动驱动支持: 自动加载集成在技能内部的瀚高专用 psycopg2 驱动。
  3. 环境适配: 脚本已适配 Python 2.7,并能自动处理内部共享库(.so)的加载。

运行环境要求

  • Python: 必须安装 Python 2.7。
  • 系统库:
    • libpython2.7.so.1.0
    • libldap_r-2.4.so.2 (或兼容版本)
  • Arch Linux 用户: 如遇到依赖或 PGP 密钥问题,请参阅 references/driver_info.md 的安装建议。

使用指南

1. 执行查询

直接使用 python2 调用技能内部的 execute_query.py。由于驱动已内置,通常无需指定驱动路径。

示例命令:

python2 highgo-db/scripts/execute_query.py \
  --dsn "host=10.238.18.128 port=5866 dbname=ficc user=fic password='PASSWORD' options='-c search_path=system'" \
  --sql "SELECT count(*) FROM sys_user;"

2. 注意事项

  • DSN 参数: 瀚高数据库通常需要指定 options='-c search_path=system' 来正确访问系统表。
  • 驱动覆盖: 如果需要使用外部驱动,仍可通过 --driver 参数手动指定。

参考资料

Source Transparency

This detail page is rendered from real SKILL.md content. Trust labels are metadata-based hints, not a safety guarantee.

Related Skills

Related by shared tags or category signals.

Coding

YiHui GIT MONITOR

通用 Git 项目监控工具。支持 GitHub、GitLab、Gitee 等所有 Git 平台。可以添加、删除、检查任意 Git 仓库的更新,自动拉取代码并生成变更摘要。

Registry SourceRecently Updated
00Profile unavailable
Coding

Workspace Governance

A methodology-first workspace governance skill for AI agents. Focuses on principles, decision framework, and safe execution patterns instead of fixed directo...

Registry SourceRecently Updated
Coding

Nox Influencer - Creator Discovery & Influencer Marketing

Runs NoxInfluencer creator and marketing-ops workflows via CLI, including creator discovery for influencer marketing, creator marketing, UGC, social media ma...

Registry SourceRecently Updated
Coding

Gigo Lobster Doctor

🦞 GIGO · gigo-lobster-doctor: 环境体检模式:只检查 gateway、Python 依赖、题包链路与 PNG 证书能力,不跑正式试吃。 Triggers: 龙虾体检 / 检查龙虾环境 / lobster doctor / check lobster environment.

Registry SourceRecently Updated