{
  "repo": "tidbcloud/car-sales-insight",
  "binary": "vercel-edge-api",
  "binary_path": "examples/vercel/package.json",
  "dependencies": {
    "HTTP GET /api/price_by_brand_year": {
      "infrastructure": {
        "mysql": {
          "conditions": ["Always"],
          "operations": [
            {
              "operation": "SELECT",
              "trigger": "Query price distribution for a selected year",
              "conditions": ["DATABASE_URL is configured"],
              "implementation": "connect({url: process.env.DATABASE_URL}); conn.execute(query, [year], {fullResult: true})"
            }
          ]
        }
      },
      "services": []
    },
    "HTTP GET /api/avg_price_per_year": {
      "infrastructure": {
        "mysql": {
          "conditions": ["Always"],
          "operations": [
            {
              "operation": "SELECT",
              "trigger": "Query average price grouped by year",
              "conditions": ["DATABASE_URL is configured"],
              "implementation": "edge function executes aggregate SQL through @tidbcloud/serverless"
            }
          ]
        }
      },
      "services": []
    },
    "HTTP GET /api/order_by_brand_year": {
      "infrastructure": {
        "mysql": {
          "conditions": ["Always"],
          "operations": [
            {
              "operation": "SELECT",
              "trigger": "Query order counts by brand and year",
              "conditions": ["DATABASE_URL is configured"],
              "implementation": "edge function executes grouped SQL through @tidbcloud/serverless"
            }
          ]
        }
      },
      "services": []
    },
    "HTTP GET /api/total_order_per_year": {
      "infrastructure": {
        "mysql": {
          "conditions": ["Always"],
          "operations": [
            {
              "operation": "SELECT",
              "trigger": "Query total order counts grouped by year",
              "conditions": ["DATABASE_URL is configured"],
              "implementation": "edge function executes aggregate SQL through @tidbcloud/serverless"
            }
          ]
        }
      },
      "services": []
    }
  }
}
