{
  "repo": "pingcap/benchmarksql",
  "binary": "run-database-destroy",
  "binary_path": "run/runDatabaseDestroy.sh",
  "dependencies": {
    "RunDatabaseDestroyCLI.Execute": {
      "infrastructure": {
        "filesystem": {
          "conditions": [
            "Always when the command is invoked"
          ],
          "operations": [
            {
              "operation": "READ FILE",
              "trigger": "Read the properties file before destroying the schema",
              "conditions": [
                "PROPS argument points to an existing file"
              ],
              "implementation": "grep '^db=' $PROPS"
            }
          ]
        }
      },
      "services": [
        {
          "name": "benchmarksql-cli",
          "target_repo": "pingcap/benchmarksql",
          "target_interface": "RunSQLCLI.runSQL.sh PROPS_FILE SQL_FILE",
          "operation_type": "local_cli_call",
          "conditions": [
            "Always"
          ],
          "operations": [
            {
              "operation": "EXECUTE SUBCOMMAND",
              "trigger": "Apply the tableDrops SQL stage",
              "conditions": [
                "tableDrops step is selected"
              ],
              "implementation": "./runSQL.sh \"${PROPS}\" tableDrops"
            }
          ]
        }
      ]
    }
  }
}
