vitess.io/vitess@v0.16.2/go/vt/vtgate/planbuilder/testdata/use_cases.json (about)

     1  [
     2    {
     3      "comment": "use db",
     4      "query": "use ks",
     5      "plan": {
     6        "QueryType": "USE",
     7        "Original": "use ks",
     8        "Instructions": {
     9          "OperatorType": "UpdateTarget",
    10          "target": "ks"
    11        }
    12      }
    13    },
    14    {
    15      "comment": "use db tablet",
    16      "query": "use ks@replica",
    17      "plan": {
    18        "QueryType": "USE",
    19        "Original": "use ks@replica",
    20        "Instructions": {
    21          "OperatorType": "UpdateTarget",
    22          "target": "ks@replica"
    23        }
    24      }
    25    },
    26    {
    27      "comment": "use db target with :",
    28      "query": "use `ks:-80@replica`",
    29      "plan": {
    30        "QueryType": "USE",
    31        "Original": "use `ks:-80@replica`",
    32        "Instructions": {
    33          "OperatorType": "UpdateTarget",
    34          "target": "ks:-80@replica"
    35        }
    36      }
    37    },
    38    {
    39      "comment": "use db target with /",
    40      "query": "use `ks/80-@replica`",
    41      "plan": {
    42        "QueryType": "USE",
    43        "Original": "use `ks/80-@replica`",
    44        "Instructions": {
    45          "OperatorType": "UpdateTarget",
    46          "target": "ks/80-@replica"
    47        }
    48      }
    49    },
    50    {
    51      "comment": "reset db",
    52      "query": "use",
    53      "plan": {
    54        "QueryType": "USE",
    55        "Original": "use",
    56        "Instructions": {
    57          "OperatorType": "UpdateTarget"
    58        }
    59      }
    60    }
    61  ]