{
  "id": "mariadb-10-6",
  "name": "MariaDB 10.6",
  "homepage": "https://mariadb.org/",
  "description": "Drop-in replacement for MySQL",
  "executables": [
    "mariadb"
  ],
  "dotfiles": {
    "paths": [
      "~/.my.cnf"
    ],
    "secret": [],
    "secret_paths": [
      {
        "file": "~/.my.cnf",
        "match": {
          "prefix": [
            "password"
          ]
        }
      }
    ],
    "machine_lines": [
      {
        "file": "~/.my.cnf",
        "match": {
          "prefix": [
            "socket"
          ]
        },
        "scope": "platform"
      }
    ]
  },
  "commands": {
    "format": 1,
    "label": "mariadb",
    "description": "Connect with the MariaDB command-line client, optionally running one statement. Password options are left out; use an option file or the prompt.",
    "quality": "ai-draft",
    "parser": {
      "end_of_options": "--",
      "interleave": "permute",
      "long_equals": true,
      "short_attached": true,
      "short_bundles": false
    },
    "source": [
      {
        "id": "docs",
        "kind": "manual",
        "url": "https://mariadb.com/docs/server/clients-and-utilities/mariadb-client/mariadb-command-line-client",
        "evidence": "-D, --database= name\n-e, --execute= name\n-h, --host= host\n-P, --port= num\n-t, --table\n-u , --user=\n-E, --vertical\n-s, --silent\n-N, --skip-column-names"
      }
    ],
    "field": [
      {
        "id": "host",
        "label": "Host",
        "type": "string",
        "option": [
          "--host",
          "-h"
        ],
        "sources": [
          "docs"
        ]
      },
      {
        "id": "port",
        "label": "Port",
        "type": "integer",
        "option": [
          "--port",
          "-P"
        ],
        "sources": [
          "docs"
        ]
      },
      {
        "id": "user",
        "label": "User",
        "type": "string",
        "option": [
          "--user",
          "-u"
        ],
        "sources": [
          "docs"
        ]
      },
      {
        "id": "database",
        "label": "Database",
        "type": "string",
        "option": [
          "--database",
          "-D"
        ],
        "sources": [
          "docs"
        ]
      },
      {
        "id": "execute",
        "label": "Statement",
        "description": "Run this statement and exit.",
        "type": "string",
        "option": [
          "--execute",
          "-e"
        ],
        "effect": "exec",
        "sources": [
          "docs"
        ]
      },
      {
        "id": "table",
        "label": "Table output",
        "type": "boolean",
        "option": [
          "--table",
          "-t"
        ],
        "sources": [
          "docs"
        ]
      },
      {
        "id": "vertical",
        "label": "Vertical output",
        "type": "boolean",
        "option": [
          "--vertical",
          "-E"
        ],
        "sources": [
          "docs"
        ]
      },
      {
        "id": "silent",
        "label": "Silent",
        "type": "boolean",
        "option": [
          "--silent",
          "-s"
        ],
        "sources": [
          "docs"
        ]
      },
      {
        "id": "skip_column_names",
        "label": "Skip column names",
        "type": "boolean",
        "option": [
          "--skip-column-names",
          "-N"
        ],
        "sources": [
          "docs"
        ]
      }
    ],
    "task": [
      {
        "id": "connect",
        "label": "Connect",
        "fields": [
          "host",
          "port",
          "user",
          "database"
        ],
        "required": []
      },
      {
        "id": "query",
        "label": "Run one statement",
        "fields": [
          "host",
          "port",
          "user",
          "database",
          "execute",
          "table",
          "vertical",
          "skip_column_names"
        ],
        "required": [
          "execute"
        ]
      }
    ],
    "group": [
      {
        "id": "basic",
        "label": "Basic",
        "fields": [
          "host",
          "port",
          "user",
          "database",
          "execute"
        ]
      },
      {
        "id": "advanced",
        "label": "Advanced",
        "fields": [
          "table",
          "vertical",
          "silent",
          "skip_column_names"
        ]
      }
    ]
  }
}
