一键导入
sqlite-postgres-schema-export
Generate PostgreSQL CREATE TABLE scripts directly from live SQLite metadata without hand-transcribing Lahman-style schemas.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Generate PostgreSQL CREATE TABLE scripts directly from live SQLite metadata without hand-transcribing Lahman-style schemas.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Triage MCP test drift by separating stale assertions from real surface regressions after a partial metadata/tool refactor.
Render salary values with a stable dollar sign in Razor views without depending on host culture.
Audit htmxRazor asset imports and cache behavior after a migration slice without breaking shell-owned runtime contracts.
Migrate leaderboard pages to htmxRazor by replacing badges only, preserving all backend and frontend contracts.
Preserve the global search dropdown + all-results modal contracts while migrating Razor/htmx page markup around a shell-owned search surface.
Build Razor Page detail screens from projected records and dedicated view models instead of passing entities or PageModels into partials.
| name | sqlite-postgres-schema-export |
| description | Generate PostgreSQL CREATE TABLE scripts directly from live SQLite metadata without hand-transcribing Lahman-style schemas. |
| domain | database-migration |
| confidence | high |
| source | earned |
| tools | [{"name":"sqlite3","description":"Reads live table, index, and foreign-key metadata from the source SQLite database.","when":"Use when the checked-in SQL files may lag behind the actual database file."}] |
Use this when a SQLite database is the source of truth, but the deliverable needs PostgreSQL-compatible DDL per table. This is especially useful for Lahman-style schemas with mixed-case identifiers, numeric-looking column names like 2B, and composite keys that SQLite reports loosely.
sqlite_master, then use PRAGMA table_info, PRAGMA index_list + PRAGMA index_info, and PRAGMA foreign_key_list to build the schema from live metadata.nvarchar(n) → varchar(n), INT → integer, tinyint → smallint, float → double precision."2B".COLLATE NOCASE, but preserve primary keys, unique constraints, and foreign keys.NOT NULL in the PostgreSQL output, even when SQLite metadata does not mark composite-key members as non-null.lahman.dbdatabase/postgres-schema/{TableName}.sqlscripts/generate_postgres_schema.pydatabase/postgres-schema/all_tables.sqlrank, 2B, 3B, or mixed-case names.