d2/testdata/d2compiler/TestCompile/sql-null-constraint.exp.json

347 lines
12 KiB
JSON
Raw Permalink Normal View History

{
"graph": {
"name": "",
"isFolderOnly": false,
"ast": {
"range": "d2/testdata/d2compiler/TestCompile/sql-null-constraint.d2,0:0:0-4:1:83",
"nodes": [
{
"map_key": {
"range": "d2/testdata/d2compiler/TestCompile/sql-null-constraint.d2,0:0:0-4:1:83",
"key": {
"range": "d2/testdata/d2compiler/TestCompile/sql-null-constraint.d2,0:0:0-0:1:1",
"path": [
{
"unquoted_string": {
"range": "d2/testdata/d2compiler/TestCompile/sql-null-constraint.d2,0:0:0-0:1:1",
"value": [
{
"string": "x",
"raw_string": "x"
}
]
}
}
]
},
"primary": {},
"value": {
"map": {
"range": "d2/testdata/d2compiler/TestCompile/sql-null-constraint.d2,0:3:3-4:1:83",
"nodes": [
{
"map_key": {
"range": "d2/testdata/d2compiler/TestCompile/sql-null-constraint.d2,1:2:7-1:18:23",
"key": {
"range": "d2/testdata/d2compiler/TestCompile/sql-null-constraint.d2,1:2:7-1:7:12",
"path": [
{
"unquoted_string": {
"range": "d2/testdata/d2compiler/TestCompile/sql-null-constraint.d2,1:2:7-1:7:12",
"value": [
{
"string": "shape",
"raw_string": "shape"
}
]
}
}
]
},
"primary": {},
"value": {
"unquoted_string": {
"range": "d2/testdata/d2compiler/TestCompile/sql-null-constraint.d2,1:9:14-1:18:23",
"value": [
{
"string": "sql_table",
"raw_string": "sql_table"
}
]
}
}
}
},
{
"map_key": {
"range": "d2/testdata/d2compiler/TestCompile/sql-null-constraint.d2,2:2:26-2:27:51",
"key": {
"range": "d2/testdata/d2compiler/TestCompile/sql-null-constraint.d2,2:2:26-2:3:27",
"path": [
{
"unquoted_string": {
"range": "d2/testdata/d2compiler/TestCompile/sql-null-constraint.d2,2:2:26-2:3:27",
"value": [
{
"string": "a",
"raw_string": "a"
}
]
}
}
]
},
"primary": {
"unquoted_string": {
"range": "d2/testdata/d2compiler/TestCompile/sql-null-constraint.d2,2:5:29-2:8:32",
"value": [
{
"string": "int",
"raw_string": "int"
}
]
}
},
"value": {
"map": {
"range": "d2/testdata/d2compiler/TestCompile/sql-null-constraint.d2,2:9:33-2:27:51",
"nodes": [
{
"map_key": {
"range": "d2/testdata/d2compiler/TestCompile/sql-null-constraint.d2,2:10:34-2:26:50",
"key": {
"range": "d2/testdata/d2compiler/TestCompile/sql-null-constraint.d2,2:10:34-2:20:44",
"path": [
{
"unquoted_string": {
"range": "d2/testdata/d2compiler/TestCompile/sql-null-constraint.d2,2:10:34-2:20:44",
"value": [
{
"string": "constraint",
"raw_string": "constraint"
}
]
}
}
]
},
"primary": {},
"value": {
"null": {
"range": "d2/testdata/d2compiler/TestCompile/sql-null-constraint.d2,2:22:46-2:26:50"
}
}
}
}
]
}
}
}
},
{
"map_key": {
"range": "d2/testdata/d2compiler/TestCompile/sql-null-constraint.d2,3:2:54-3:29:81",
"key": {
"range": "d2/testdata/d2compiler/TestCompile/sql-null-constraint.d2,3:2:54-3:3:55",
"path": [
{
"unquoted_string": {
"range": "d2/testdata/d2compiler/TestCompile/sql-null-constraint.d2,3:2:54-3:3:55",
"value": [
{
"string": "b",
"raw_string": "b"
}
]
}
}
]
},
"primary": {
"unquoted_string": {
"range": "d2/testdata/d2compiler/TestCompile/sql-null-constraint.d2,3:5:57-3:8:60",
"value": [
{
"string": "int",
"raw_string": "int"
}
]
}
},
"value": {
"map": {
"range": "d2/testdata/d2compiler/TestCompile/sql-null-constraint.d2,3:9:61-3:29:81",
"nodes": [
{
"map_key": {
"range": "d2/testdata/d2compiler/TestCompile/sql-null-constraint.d2,3:10:62-3:28:80",
"key": {
"range": "d2/testdata/d2compiler/TestCompile/sql-null-constraint.d2,3:10:62-3:20:72",
"path": [
{
"unquoted_string": {
"range": "d2/testdata/d2compiler/TestCompile/sql-null-constraint.d2,3:10:62-3:20:72",
"value": [
{
"string": "constraint",
"raw_string": "constraint"
}
]
}
}
]
},
"primary": {},
"value": {
"array": {
"range": "d2/testdata/d2compiler/TestCompile/sql-null-constraint.d2,3:22:74-3:27:79",
"nodes": [
{
"null": {
"range": "d2/testdata/d2compiler/TestCompile/sql-null-constraint.d2,3:23:75-3:27:79"
}
}
]
}
}
}
}
]
}
}
}
}
]
}
}
}
}
]
},
"root": {
"id": "",
"id_val": "",
"attributes": {
"label": {
"value": ""
},
"labelDimensions": {
"width": 0,
"height": 0
},
"style": {},
"near_key": null,
"shape": {
"value": ""
},
"direction": {
"value": ""
},
"constraint": null
},
"zIndex": 0
},
"edges": null,
"objects": [
{
"id": "x",
"id_val": "x",
"references": [
{
"key": {
"range": "d2/testdata/d2compiler/TestCompile/sql-null-constraint.d2,0:0:0-0:1:1",
"path": [
{
"unquoted_string": {
"range": "d2/testdata/d2compiler/TestCompile/sql-null-constraint.d2,0:0:0-0:1:1",
"value": [
{
"string": "x",
"raw_string": "x"
}
]
}
}
]
},
"key_path_index": 0,
"map_key_edge_index": -1
}
],
"sql_table": {
"columns": [
{
"name": {
"label": "a",
"fontSize": 0,
"fontFamily": "",
"language": "",
"color": "",
"italic": false,
"bold": false,
"underline": false,
"labelWidth": 0,
"labelHeight": 0
},
"type": {
"label": "int",
"fontSize": 0,
"fontFamily": "",
"language": "",
"color": "",
"italic": false,
"bold": false,
"underline": false,
"labelWidth": 0,
"labelHeight": 0
},
"constraint": null,
"reference": ""
},
{
"name": {
"label": "b",
"fontSize": 0,
"fontFamily": "",
"language": "",
"color": "",
"italic": false,
"bold": false,
"underline": false,
"labelWidth": 0,
"labelHeight": 0
},
"type": {
"label": "int",
"fontSize": 0,
"fontFamily": "",
"language": "",
"color": "",
"italic": false,
"bold": false,
"underline": false,
"labelWidth": 0,
"labelHeight": 0
},
"constraint": [
"null"
],
"reference": ""
}
]
},
"attributes": {
"label": {
"value": "x"
},
"labelDimensions": {
"width": 0,
"height": 0
},
"style": {},
"near_key": null,
"shape": {
"value": "sql_table"
},
"direction": {
"value": ""
},
"constraint": null
},
"zIndex": 0
}
]
},
"err": null
}