{
  "slug": "sql-playground",
  "name": "gizza-ai/sql-playground",
  "version": "0.1.0",
  "title": "SQL Playground — Run SQL in your browser, no setup — gizza.ai",
  "description": "Run SQL in your browser against a fresh in-memory database — CREATE TABLE, INSERT, SELECT, JOIN — with table, CSV, or JSON output. Free and private.",
  "tags": [
    "sql playground",
    "online sql",
    "run sql",
    "sql sandbox",
    "in-memory sql",
    "sql tester"
  ],
  "category": "developer",
  "urls": {
    "page": "https://gizza.ai/tools/sql-playground/",
    "markdown": "https://gizza.ai/tools/sql-playground/index.md",
    "descriptor": "https://gizza.ai/tools/sql-playground/tool.json",
    "deep_link_example": "https://gizza.ai/tools/sql-playground/?sql=CREATE%20TABLE%20users%20%28id%20INTEGER%2C%20name%20TEXT%2C%20age%20INTEGER%29%3B%0AINSERT%20INTO%20users%20VALUES%20%281%2C%20%27Ann%27%2C%2030%29%2C%20%282%2C%20%27Bob%27%2C%2025%29%3B%0ASELECT%20name%2C%20age%20FROM%20users%20WHERE%20age%20%3E%3D%2028%20ORDER%20BY%20age%20DESC%3B&format=table"
  },
  "cli": "gizza tool sql-playground \"CREATE TABLE users (id INTEGER, name TEXT, age INTEGER);\nINSERT INTO users VALUES (1, 'Ann', 30), (2, 'Bob', 25);\nSELECT name, age FROM users WHERE age >= 28 ORDER BY age DESC;\"",
  "tool": {
    "description": "Create an in-memory SQL database from your statements and run queries against it, returning the result of the last statement. Pass one or more semicolon-separated SQL statements in 'sql' (e.g. a CREATE TABLE and INSERTs followed by a SELECT) — the database is fresh each call, so include the schema and data you want to query. Supports CREATE TABLE, INSERT, UPDATE, DELETE and SELECT with WHERE, ORDER BY, LIMIT, GROUP BY, aggregate functions and JOINs. Use format='table' (default) for an aligned grid, 'csv' for comma-separated rows, or 'json' for an array of row objects.",
    "parameters": {
      "additionalProperties": false,
      "properties": {
        "format": {
          "default": "table",
          "enum": [
            "table",
            "csv",
            "json"
          ],
          "type": "string"
        },
        "sql": {
          "type": "string"
        }
      },
      "required": [
        "sql"
      ],
      "type": "object"
    }
  }
}