← Back to directory

Postgres or MySQL SQL to SQLite and D1 — skill file for AI agents (AISkills402)

https://api.aiskills402.com/v1/skills/sql-dialect-to-sqlite/file

Overview

Converts PostgreSQL or MySQL schema statements, migrations and queries into SQLite that Cloudflare D1 and Turso run, so the converted version behaves like the original and not only parses. Knows the conversions that run without an error and then go wrong - a key written as BIGSERIAL or INT AUTO_INCREMENT that SQLite stores as NULL, a custom enum type or an inline enum that stops checking anything, a default now() or gen_random_uuid() that SQLite rejects, a unique email that was case-insensitive in MySQL, ON UPDATE CURRENT_TIMESTAMP that needs a trigger, a foreign key added later with ALTER TABLE, a schema prefix, DISTINCT ON, ILIKE, double-colon casts, date_trunc, interval arithmetic, DATEDIFF, GROUP_CONCAT with SEPARATOR, MySQL division that keeps the fraction, ON DUPLICATE KEY UPDATE, JSON operators. Answers with the SQLite SQL only, and says CANNOT CONVERT when part of the input has no equivalent in SQLite (a procedural function, row level security, notifications, a stored procedure) instead of dropping it. Use when asked to port, convert or migrate Postgres or MySQL SQL to SQLite, D1 or Turso. One-time purchase of the SKILL.md file itself (Agent Skills format), not an API call: $0.01 USDC on Base over x402, yours forever incl. free re-downloads and new versions. No account, no API key. Tested with a strong and a weak model; the card tells you where the weak one fails: https://aiskills402.com/skills/sql-dialect-to-sqlite

Protocol x402
Price $0.01
Payment Asset USD Coin
Payment Network Base
Category ai/agent-skills
Provider aiskills402
Source bazaar
Indexed 2026-10-15 19:19:16

Health

Status healthy
Latency (p50) 588ms
Uptime (30d) 90.5%
Reliability Score 85.2/100
Last Checked 2026-12-04 08:07:33
Last Healthy 2026-12-04 08:07:33
Consecutive Failures 0

x402 Payment Validation

Payment Requirements Valid
Asset Verified Known USDC
Facilitator —

Input Schema

{ "method": "GET", "type": "http" }

Output Schema

{ "example": { "file": { "content": "<the SKILL.md file>", "encoding": "utf-8", "name": "SKILL.md" }, "name": "Postgres or MySQL SQL to SQLite and D1", "ok": true, "receipt": { "settled": true, "tx": "0x<settlement transaction>" }, "redownload": { "token": "<64 hex chars>", "url": "<api>/v1/purchases/<token>" }, "sha256": "<sha256 of SKILL.md>", "skill": "sql-dialect-to-sqlite", "version": "1.0.0" }, "type": "json" }

Recent Health Checks

Time Status HTTP Latency Error
2026-12-04 08:07:33 healthy 402 4313ms
2026-12-04 06:57:12 healthy 402 916ms
2026-12-04 05:51:25 healthy 402 317ms
2026-12-04 04:08:27 healthy 402 588ms
2026-12-04 02:50:52 healthy 402 217ms
2026-12-04 01:57:34 error — — fetch failed
2026-12-04 00:00:03 healthy 402 463ms
2026-12-03 23:01:38 healthy 402 1285ms
2026-12-03 22:00:07 healthy 402 155ms
2026-12-03 21:05:49 healthy 402 210ms
2026-12-03 20:07:01 healthy 402 244ms
2026-12-03 19:01:41 healthy 402 716ms
2026-12-03 17:04:26 healthy 402 891ms
2026-12-03 15:05:41 healthy 402 417ms
2026-12-03 12:54:32 healthy 402 1472ms
2026-12-03 08:57:13 healthy 402 668ms
2026-12-03 02:04:54 healthy 402 306ms
2026-12-02 20:05:35 healthy 402 2337ms
2026-12-02 14:30:22 healthy 402 3771ms
2026-12-02 08:46:45 error — — fetch failed