mirror of
https://github.com/hanzo-ds/sqlparser.git
synced 2026-10-30 20:53:50 +00:00
114 lines
2.8 KiB
JSON
114 lines
2.8 KiB
JSON
[
|
|
{
|
|
"AlterPos": 0,
|
|
"StatementEnd": 140,
|
|
"TableIdentifier": {
|
|
"Database": null,
|
|
"Table": {
|
|
"Name": "visits_order",
|
|
"QuoteType": 1,
|
|
"NamePos": 12,
|
|
"NameEnd": 24
|
|
}
|
|
},
|
|
"OnCluster": null,
|
|
"AlterExprs": [
|
|
{
|
|
"AddPos": 25,
|
|
"StatementEnd": 140,
|
|
"IfNotExists": true,
|
|
"TableProjection": {
|
|
"IncludeProjectionKeyword": false,
|
|
"ProjectionPos": 55,
|
|
"Identifier": {
|
|
"Ident": {
|
|
"Name": "user_name_projection",
|
|
"QuoteType": 1,
|
|
"NamePos": 55,
|
|
"NameEnd": 75
|
|
},
|
|
"DotIdent": null
|
|
},
|
|
"Select": {
|
|
"LeftParenPos": 76,
|
|
"RightParenPos": 123,
|
|
"With": null,
|
|
"SelectColumns": {
|
|
"ListPos": 84,
|
|
"ListEnd": 84,
|
|
"HasDistinct": false,
|
|
"Items": [
|
|
{
|
|
"Expr": {
|
|
"Name": "*",
|
|
"QuoteType": 0,
|
|
"NamePos": 84,
|
|
"NameEnd": 84
|
|
},
|
|
"Alias": null
|
|
}
|
|
]
|
|
},
|
|
"GroupBy": {
|
|
"GroupByPos": 86,
|
|
"GroupByEnd": 105,
|
|
"AggregateType": "",
|
|
"Expr": {
|
|
"ListPos": 95,
|
|
"ListEnd": 104,
|
|
"HasDistinct": false,
|
|
"Items": [
|
|
{
|
|
"Expr": {
|
|
"Name": "user_name",
|
|
"QuoteType": 1,
|
|
"NamePos": 95,
|
|
"NameEnd": 104
|
|
},
|
|
"Alias": null
|
|
}
|
|
]
|
|
},
|
|
"WithCube": false,
|
|
"WithRollup": false,
|
|
"WithTotals": false
|
|
},
|
|
"OrderBy": {
|
|
"OrderByPos": 105,
|
|
"Columns": {
|
|
"ListPos": 114,
|
|
"ListEnd": 123,
|
|
"HasDistinct": false,
|
|
"Items": [
|
|
{
|
|
"Expr": {
|
|
"Name": "user_name",
|
|
"QuoteType": 1,
|
|
"NamePos": 114,
|
|
"NameEnd": 123
|
|
},
|
|
"Alias": null
|
|
}
|
|
]
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"After": {
|
|
"Ident": {
|
|
"Name": "a",
|
|
"QuoteType": 1,
|
|
"NamePos": 131,
|
|
"NameEnd": 132
|
|
},
|
|
"DotIdent": {
|
|
"Name": "user_id",
|
|
"QuoteType": 1,
|
|
"NamePos": 133,
|
|
"NameEnd": 140
|
|
}
|
|
}
|
|
}
|
|
]
|
|
}
|
|
] |