Skip to content
Fourohtwo

agents.writerslogic.com/api/v1/migration-reversibility

Classifies each statement of a PostgreSQL, MySQL or SQLite migration (up to 20000 characters) as reversible, needing a backup, needing the original definition, or irreversible, for agents that write or review schema migrations. Flags DROP TABLE/COLUMN, TRUNCATE, unbounded DELETE/UPDATE, lossy type changes, NOT NULL or constraints that fail on existing rows, table-rewrite and lock hazards, and MySQ

BaseAnswering
POSThttps://agents.writerslogic.com/api/v1/migration-reversibility

Uptime100% of 2 checks in 30 days

30 days agoToday

Try it

Pays from your browser wallet in USDC on Base or USDG on Robinhood Chain, whichever the endpoint takes. The provider is paid directly; failed calls aren't refunded by Fourohtwo.

The response shows up here.

Call it from an agent

// npm install fourohtwo
import { createPayer } from "fourohtwo";

// One agent key pays USDC on Base or USDG on Robinhood Chain, inside your spending rules.
const pay = createPayer({ privateKey: process.env.AGENT_KEY, maxPerCallUsd: "0.05" });
const res = await pay("https://agents.writerslogic.com/api/v1/migration-reversibility", {
  method: "POST",
  headers: { "content-type": "application/json" },
  body: JSON.stringify({"sql":"ALTER TABLE users ADD COLUMN nickname text; ALTER TABLE users DROP COLUMN legacy_flag;","dialect":"postgres"}),
});
console.log(await res.json());

Example input

{
  "sql": "ALTER TABLE users ADD COLUMN nickname text; ALTER TABLE users DROP COLUMN legacy_flag;",
  "dialect": "postgres"
}