Is your Postgres migration safe or not safe?

Is your Postgres migration safe or not safe?

你的 Postgres 数据库迁移操作安全吗?

Content:

FileEditSelectionViewCheckHelpsafe-not-safe — migration.sqloffline◆migration.sql✕CHECKING⌥⇧F⋯session›migration.sql›0 statements12345678910ALTER TABLE users ADD COLUMN status text DEFAULT ‘active’; CREATE INDEX CONCURRENTLY users_created_at_idx ON users (created_at); ALTER TABLE orders ADD CONSTRAINT orders_user_id_fk FOREIGN KEY (user_id) REFERENCES users(id) NOT VALID; ALTER TABLE orders VALIDATE CONSTRAINT orders_user_id_fk;CHECKINGLoading PostgreSQL parser.Downloading and compiling libpg_query WASM in a browser worker.0 flagged of 0PROBLEMSTERMINALOUTPUTPARSE TREERULE ENGINEbash+⌃`$ npx safe-not-safe check migration.sqlparse libpg_query 17 (wasm) · initializing · 0 statements · 301 charsnote Downloading and compiling the PostgreSQL WASM parser.No statements found. Paste a migration or load a sample.CHECKING — Loading PostgreSQL parser.Downloading and compiling libpg_query WASM in a browser worker.$ CHECKING0 flagged · 0 statementsLn 1, Col 1PostgreSQL 16SQLno telemetryGitHub


[Editor’s Note: The provided content is a technical interface snapshot of the “safe-not-safe” tool. Below is the translation of the interface elements.]

[编辑注:所提供的内容为“safe-not-safe”工具的技术界面快照。以下是界面元素的中文翻译。]

FileEditSelectionViewCheckHelp 文件 编辑 选择 视图 检查 帮助

safe-not-safe — migration.sql safe-not-safe — migration.sql (迁移脚本)

CHECKING — Loading PostgreSQL parser. Downloading and compiling libpg_query WASM in a browser worker. 检查中 — 正在加载 PostgreSQL 解析器。正在浏览器工作线程中下载并编译 libpg_query WASM。

0 flagged of 0 PROBLEMS 0 个问题被标记,共 0 个问题

$ npx safe-not-safe check migration.sql $ npx safe-not-safe check migration.sql (执行命令)

No statements found. Paste a migration or load a sample. 未找到 SQL 语句。请粘贴迁移脚本或加载示例。

PostgreSQL 16 SQL no telemetry PostgreSQL 16 SQL 无遥测数据