sqldefsql
Installation
Review the source and dependencies with a prompt. A package is available to download.
Install with an AI assistant
Copy the prompt so your assistant can review the pinned revision and dependencies first.
View promptHide prompt
Check whether SkillPI Skill Finder is installed for your current agent. If it is missing, install and enable it using the official instructions at https://github.com/Findskills/skillpi. Then use Skill Finder to locate and install "sqldefsql" from this exact SkillPI detail page: https://skillpi.com/skills/deepskill-b70305657967d93616169a2deb7265533bdae59ef86c11635b192d786c961c50. Verify the upstream source and version against https://skillhub.cn/skills/user_3c6cb52e/diff-live-database-schemas-against-declarative-sql-before-schema-drift-reaches-production-with-sqldef before installing. If they do not match, stop and report the mismatch. Report the installed path and source version.
Source and setup
skillhub.cn
Setup guidance pending
See the original source for supported tools, dependencies, and permissions.
Installation test pending
Compares checked-in SQL against live MySQL, PostgreSQL, SQLite, or SQL Server schemas and generates a reviewable apply plan before an agent touches production databases.
Introduction source: third_party · user_3c6cb52e · 1.0.0 Reference
SkillPi interpretation
- Tasks
- Translation pending; see source documentation.
- Software, accounts and paid services
- Compare checked-in SQL against live MySQL, PostgreSQL, SQLite, or SQL Server schemas and generate a reviewable apply plan before agents touch production databases.
- Testing
- Not tested
Browse files
Frontmatter
name: "在模式漂移到达生产环境之前,使用 sqldef 对实时数据库模式与声明式 SQL 进行对比检查"
slug: "diff-live-database-schemas-against-declarative-sql-before-schema-drift-reaches-production-with-sqldef"
version: "1.0.0"
displayName: "在模式漂移到达生产环境之前,使用 sqldef 对实时数据库模式与声明式 SQL 进行对比检查"
summary: "将签入的SQL与实时的MySQL、PostgreSQL、SQLite或SQL Server模式进行对比,并在代理接触生产数据库之前生成可审查的应用计划。"
license: "MIT"
description: "将签入的SQL与实时的MySQL、PostgreSQL、SQLite或SQL Server模式进行对比,并在代理接触生产数据库之前生成可审查的应用计划。"
github_stars: 3076
verification: "security_reviewed"
source: "https://github.com/1991513ccie-png/skills"
author: "1991513ccie-png"
publisher_type: "individual"
category: "Runbooks & Diagnostics"
framework: "Multi-Framework"
tool_ecosystem:
github_repo: "1991513ccie-png/skills"
github_stars: 3076在模式漂移到达生产环境之前,使用 sqldef 对实时数据库模式与声明式 SQL 进行对比检查
Compare checked-in SQL against live MySQL, PostgreSQL, SQLite, or SQL Server schemas and generate a reviewable apply plan before agents touch production databases.
Prerequisites
Go-built sqldef binary and access to a supported relational database
Installation
Use the upstream install or setup path that matches your environment:
- Docker images are available on Docker Hub:
- brew install sqldef/sqldef/mysqldef
- brew install sqldef/sqldef/psqldef
- brew install sqldef/sqldef/sqlite3def
Requirements and caveats from upstream:
-
Docker images
- https://hub.docker.com/u/sqldef
- Debian packages are not currently available. Use the pre-built binaries or Docker images instead.
Basic usage or getting-started notes:
-
Each database gets its own command (mysqldef, psqldef, sqlite3def, mssqldef) that mimics the connection options of the native database client, making it familiar and easy to integrate into existing workflows. The tool...
-
Basic Workflow
-
This is the basic workflow, which is identical across all databases - only the connection options differ between commands.
-
Extracted from upstream docs: https://raw.githubusercontent.com/sqldef/sqldef/HEAD/README.md
Documentation
Current listing version
1.0.0
Quality assessment
Out of 100 · Assessment report from SkillPi LAB.
Highlights
- 提供数据库模式漂移检测与对比功能,适用于数据库运维和 CI/CD 流程中的模式变更审查
- 支持多种主流数据库(MySQL、PostgreSQL、SQLite、SQL Server),具有广泛适用性
Highlights
- description 明确描述了核心功能,触发词覆盖合理,边界清晰
Areas to improve
-
缺少端到端示例 Reported severity: Minor
文档缺少具体的 Phase/步骤划分和端到端示例,用户难以理解完整执行流程
Recommendation: 建议添加具体的 Phase 划分和端到端示例,帮助用户理解完整执行流程
-
缺少明确的出口条件 Reported severity: Minor
文档未明确说明执行成功或失败的条件,用户难以判断执行结果
Recommendation: 建议添加明确的出口条件说明,帮助用户判断执行结果
Highlights
- 文档包含 Prerequisites、Installation、Documentation 等基本结构
Areas to improve
-
缺少异常处理说明 Reported severity: Minor
文档未覆盖主要异常处理(如连接失败、权限不足等),用户遇到问题时难以解决
Recommendation: 建议添加异常处理说明,帮助用户解决常见问题
-
缺少不可逆操作确认机制 Reported severity: Minor
文档未说明不可逆操作的确认机制,存在误操作风险
Recommendation: 建议添加不可逆操作的确认机制说明,降低误操作风险
Highlights
- 工具来源明确(sqldef 官方),参数说明清晰
The arithmetic mean of the first four original scores, rounded to a whole number.
Static text checks
100 / 100 · skillpi-20261123-no-r3-v1
No current rules matched the text.
This score reflects rule matches in the text and is provided for reference before use. It excludes attachments and runtime behavior.
Permissions and checks before use
Automatically summarized from this main document. Matches may be examples or defensive advice; they are not actual permission declarations. Attachments, external dependencies and runtime behavior are not covered.
-
Install or fetch external dependencies
Use official sources and pin versions. Check install scripts in an isolated environment. This document check does not cover code downloaded later.
Mentioned in main document · lines 33, 34, 35
Domains or addresses referenced in the document
These addresses may be documentation links or examples, not an approved network allowlist. Verify actual destinations and outgoing data before use.
- github.com
- hub.docker.com
- raw.githubusercontent.com
Security rating and access scope
safe · Static evidence review; not a runtime safety guarantee.
Compare checked-in SQL against live MySQL, PostgreSQL, SQLite, or SQL Server schemas and generate a reviewable apply plan before agents touch production databases.
Before use, confirm and authorize actual file access, external services and network destinations in your host. This review grants no runtime permissions.
User discussion
No verified reviews yet.