{
  "repo": "tidbcloud/car-sales-insight",
  "binary": "cloudflare-worker",
  "binary_path": "examples/cloudflare-workers/package.json",
  "dependencies": {
    "HTTP GET /api/avg_price_per_year": {
      "infrastructure": {
        "mysql": {
          "conditions": ["Always"],
          "operations": [
            {
              "operation": "SELECT",
              "trigger": "Query average price grouped by year",
              "conditions": ["env.DATABASE_URL is configured"],
              "implementation": "connect({url: env.DATABASE_URL}); conn.execute(query, null, {fullResult: true})"
            }
          ]
        }
      },
      "services": []
    },
    "HTTP GET /api/price_by_brand_year": {
      "infrastructure": {
        "mysql": {
          "conditions": ["Always"],
          "operations": [
            {
              "operation": "SELECT",
              "trigger": "Query top prices for the selected year",
              "conditions": ["env.DATABASE_URL is configured"],
              "implementation": "conn.execute(query, [year], {fullResult: true})"
            }
          ]
        }
      },
      "services": []
    },
    "HTTP GET /api/order_by_brand_year": {
      "infrastructure": {
        "mysql": {
          "conditions": ["Always"],
          "operations": [
            {
              "operation": "SELECT",
              "trigger": "Query order counts by brand and year",
              "conditions": ["env.DATABASE_URL is configured"],
              "implementation": "conn.execute(query, [year], {fullResult: true})"
            }
          ]
        }
      },
      "services": []
    },
    "HTTP GET /api/total_order_per_year": {
      "infrastructure": {
        "mysql": {
          "conditions": ["Always"],
          "operations": [
            {
              "operation": "SELECT",
              "trigger": "Query total orders grouped by year",
              "conditions": ["env.DATABASE_URL is configured"],
              "implementation": "conn.execute(query, null, {fullResult: true})"
            }
          ]
        }
      },
      "services": []
    }
  }
}
