...

Text file src/oss.terrastruct.com/d2/testdata/d2oracle/TestMove/include_descendants_sql.exp.json

Documentation: oss.terrastruct.com/d2/testdata/d2oracle/TestMove

     1{
     2  "graph": {
     3    "name": "",
     4    "isFolderOnly": false,
     5    "ast": {
     6      "range": "d2/testdata/d2oracle/TestMove/include_descendants_sql.d2,0:0:0-6:0:48",
     7      "nodes": [
     8        {
     9          "map_key": {
    10            "range": "d2/testdata/d2oracle/TestMove/include_descendants_sql.d2,0:0:0-5:1:47",
    11            "key": {
    12              "range": "d2/testdata/d2oracle/TestMove/include_descendants_sql.d2,0:0:0-0:1:1",
    13              "path": [
    14                {
    15                  "unquoted_string": {
    16                    "range": "d2/testdata/d2oracle/TestMove/include_descendants_sql.d2,0:0:0-0:1:1",
    17                    "value": [
    18                      {
    19                        "string": "z",
    20                        "raw_string": "z"
    21                      }
    22                    ]
    23                  }
    24                }
    25              ]
    26            },
    27            "primary": {},
    28            "value": {
    29              "map": {
    30                "range": "d2/testdata/d2oracle/TestMove/include_descendants_sql.d2,0:3:3-5:1:47",
    31                "nodes": [
    32                  {
    33                    "map_key": {
    34                      "range": "d2/testdata/d2oracle/TestMove/include_descendants_sql.d2,1:2:7-4:3:45",
    35                      "key": {
    36                        "range": "d2/testdata/d2oracle/TestMove/include_descendants_sql.d2,1:2:7-1:3:8",
    37                        "path": [
    38                          {
    39                            "unquoted_string": {
    40                              "range": "d2/testdata/d2oracle/TestMove/include_descendants_sql.d2,1:2:7-1:3:8",
    41                              "value": [
    42                                {
    43                                  "string": "x",
    44                                  "raw_string": "x"
    45                                }
    46                              ]
    47                            }
    48                          }
    49                        ]
    50                      },
    51                      "primary": {},
    52                      "value": {
    53                        "map": {
    54                          "range": "d2/testdata/d2oracle/TestMove/include_descendants_sql.d2,1:5:10-4:3:45",
    55                          "nodes": [
    56                            {
    57                              "map_key": {
    58                                "range": "d2/testdata/d2oracle/TestMove/include_descendants_sql.d2,2:4:16-2:20:32",
    59                                "key": {
    60                                  "range": "d2/testdata/d2oracle/TestMove/include_descendants_sql.d2,2:4:16-2:9:21",
    61                                  "path": [
    62                                    {
    63                                      "unquoted_string": {
    64                                        "range": "d2/testdata/d2oracle/TestMove/include_descendants_sql.d2,2:4:16-2:9:21",
    65                                        "value": [
    66                                          {
    67                                            "string": "shape",
    68                                            "raw_string": "shape"
    69                                          }
    70                                        ]
    71                                      }
    72                                    }
    73                                  ]
    74                                },
    75                                "primary": {},
    76                                "value": {
    77                                  "unquoted_string": {
    78                                    "range": "d2/testdata/d2oracle/TestMove/include_descendants_sql.d2,2:11:23-2:20:32",
    79                                    "value": [
    80                                      {
    81                                        "string": "sql_table",
    82                                        "raw_string": "sql_table"
    83                                      }
    84                                    ]
    85                                  }
    86                                }
    87                              }
    88                            },
    89                            {
    90                              "map_key": {
    91                                "range": "d2/testdata/d2oracle/TestMove/include_descendants_sql.d2,3:4:37-3:8:41",
    92                                "key": {
    93                                  "range": "d2/testdata/d2oracle/TestMove/include_descendants_sql.d2,3:4:37-3:5:38",
    94                                  "path": [
    95                                    {
    96                                      "unquoted_string": {
    97                                        "range": "d2/testdata/d2oracle/TestMove/include_descendants_sql.d2,3:4:37-3:5:38",
    98                                        "value": [
    99                                          {
   100                                            "string": "a",
   101                                            "raw_string": "a"
   102                                          }
   103                                        ]
   104                                      }
   105                                    }
   106                                  ]
   107                                },
   108                                "primary": {},
   109                                "value": {
   110                                  "unquoted_string": {
   111                                    "range": "d2/testdata/d2oracle/TestMove/include_descendants_sql.d2,3:7:40-3:8:41",
   112                                    "value": [
   113                                      {
   114                                        "string": "b",
   115                                        "raw_string": "b"
   116                                      }
   117                                    ]
   118                                  }
   119                                }
   120                              }
   121                            }
   122                          ]
   123                        }
   124                      }
   125                    }
   126                  }
   127                ]
   128              }
   129            }
   130          }
   131        }
   132      ]
   133    },
   134    "root": {
   135      "id": "",
   136      "id_val": "",
   137      "attributes": {
   138        "label": {
   139          "value": ""
   140        },
   141        "labelDimensions": {
   142          "width": 0,
   143          "height": 0
   144        },
   145        "style": {},
   146        "near_key": null,
   147        "shape": {
   148          "value": ""
   149        },
   150        "direction": {
   151          "value": ""
   152        },
   153        "constraint": null
   154      },
   155      "zIndex": 0
   156    },
   157    "edges": null,
   158    "objects": [
   159      {
   160        "id": "z",
   161        "id_val": "z",
   162        "references": [
   163          {
   164            "key": {
   165              "range": "d2/testdata/d2oracle/TestMove/include_descendants_sql.d2,0:0:0-0:1:1",
   166              "path": [
   167                {
   168                  "unquoted_string": {
   169                    "range": "d2/testdata/d2oracle/TestMove/include_descendants_sql.d2,0:0:0-0:1:1",
   170                    "value": [
   171                      {
   172                        "string": "z",
   173                        "raw_string": "z"
   174                      }
   175                    ]
   176                  }
   177                }
   178              ]
   179            },
   180            "key_path_index": 0,
   181            "map_key_edge_index": -1
   182          }
   183        ],
   184        "attributes": {
   185          "label": {
   186            "value": "z"
   187          },
   188          "labelDimensions": {
   189            "width": 0,
   190            "height": 0
   191          },
   192          "style": {},
   193          "near_key": null,
   194          "shape": {
   195            "value": "rectangle"
   196          },
   197          "direction": {
   198            "value": ""
   199          },
   200          "constraint": null
   201        },
   202        "zIndex": 0
   203      },
   204      {
   205        "id": "x",
   206        "id_val": "x",
   207        "references": [
   208          {
   209            "key": {
   210              "range": "d2/testdata/d2oracle/TestMove/include_descendants_sql.d2,1:2:7-1:3:8",
   211              "path": [
   212                {
   213                  "unquoted_string": {
   214                    "range": "d2/testdata/d2oracle/TestMove/include_descendants_sql.d2,1:2:7-1:3:8",
   215                    "value": [
   216                      {
   217                        "string": "x",
   218                        "raw_string": "x"
   219                      }
   220                    ]
   221                  }
   222                }
   223              ]
   224            },
   225            "key_path_index": 0,
   226            "map_key_edge_index": -1
   227          }
   228        ],
   229        "sql_table": {
   230          "columns": [
   231            {
   232              "name": {
   233                "label": "a",
   234                "fontSize": 0,
   235                "fontFamily": "",
   236                "language": "",
   237                "color": "",
   238                "italic": false,
   239                "bold": false,
   240                "underline": false,
   241                "labelWidth": 0,
   242                "labelHeight": 0
   243              },
   244              "type": {
   245                "label": "b",
   246                "fontSize": 0,
   247                "fontFamily": "",
   248                "language": "",
   249                "color": "",
   250                "italic": false,
   251                "bold": false,
   252                "underline": false,
   253                "labelWidth": 0,
   254                "labelHeight": 0
   255              },
   256              "constraint": null,
   257              "reference": ""
   258            }
   259          ]
   260        },
   261        "attributes": {
   262          "label": {
   263            "value": "x"
   264          },
   265          "labelDimensions": {
   266            "width": 0,
   267            "height": 0
   268          },
   269          "style": {},
   270          "near_key": null,
   271          "shape": {
   272            "value": "sql_table"
   273          },
   274          "direction": {
   275            "value": ""
   276          },
   277          "constraint": null
   278        },
   279        "zIndex": 0
   280      }
   281    ]
   282  },
   283  "err": "<nil>"
   284}

View as plain text