{
  "slug": "sql-dialect-converter",
  "name": "gizza-ai/sql-dialect-converter",
  "version": "0.1.0",
  "title": "SQL Dialect Converter — PostgreSQL ⇄ MySQL ⇄ SQLite — gizza.ai",
  "description": "Convert SQL between PostgreSQL, MySQL and SQLite in your browser — rewrites identifier quoting, auto-increment columns and CREATE TABLE data types. Free, no upload.",
  "tags": [
    "sql dialect converter",
    "postgres to mysql",
    "mysql to postgres",
    "sql to sqlite",
    "convert create table",
    "serial to auto_increment",
    "sql migration"
  ],
  "category": "data",
  "urls": {
    "page": "https://gizza.ai/tools/sql-dialect-converter/",
    "markdown": "https://gizza.ai/tools/sql-dialect-converter/index.md",
    "descriptor": "https://gizza.ai/tools/sql-dialect-converter/tool.json",
    "deep_link_example": "https://gizza.ai/tools/sql-dialect-converter/?sql=CREATE%20TABLE%20%22users%22%20%28%0A%20%20id%20SERIAL%20PRIMARY%20KEY%2C%0A%20%20email%20VARCHAR%28255%29%2C%0A%20%20active%20BOOLEAN%0A%29%3B&from=postgres&to=postgres"
  },
  "cli": "gizza tool sql-dialect-converter 'CREATE TABLE \"users\" (\n  id SERIAL PRIMARY KEY,\n  email VARCHAR(255),\n  active BOOLEAN\n);' 'from=postgres' 'to=postgres'",
  "tool": {
    "description": "Convert SQL between PostgreSQL, MySQL and SQLite. Rewrites delimited-identifier quoting (\"x\"/`x`/[x]), auto-increment columns (SERIAL / AUTO_INCREMENT / INTEGER PRIMARY KEY AUTOINCREMENT), CREATE TABLE column data types (bool, varchar, timestamp, blob, double, json, uuid, …), and strips MySQL table options (ENGINE=…, DEFAULT CHARSET=…) when the target isn't MySQL. String literals and comments are preserved. Set from and to (postgres/mysql/sqlite). Uses a forgiving tokenizer, not a full grammar — expression/function rewriting, procedures and views are out of scope. Runs locally.",
    "parameters": {
      "additionalProperties": false,
      "properties": {
        "from": {
          "description": "Source SQL dialect: postgres, mysql, or sqlite.",
          "enum": [
            "postgres",
            "mysql",
            "sqlite"
          ],
          "type": "string"
        },
        "sql": {
          "description": "The SQL to convert (DDL and/or queries). e.g. CREATE TABLE \"users\" (id SERIAL PRIMARY KEY).",
          "type": "string"
        },
        "to": {
          "description": "Target SQL dialect to convert to: postgres, mysql, or sqlite. Types are mapped to this dialect; from==to returns the input unchanged.",
          "enum": [
            "postgres",
            "mysql",
            "sqlite"
          ],
          "type": "string"
        }
      },
      "required": [
        "sql",
        "from",
        "to"
      ],
      "type": "object"
    }
  }
}