Files
upstream-mirror 0f4df23290
Some checks failed
kotlin / test (push) Has been skipped
python / test (push) Has been skipped
typescript / test (push) Has been skipped
go / build darwin/amd64 (push) Has been cancelled
go / build linux/amd64 (push) Has been cancelled
go / build windows/amd64 (push) Has been cancelled
go / build darwin/arm64 (push) Has been cancelled
go / build linux/arm64 (push) Has been cancelled
go / build windows/arm64 (push) Has been cancelled
go / test (push) Has been cancelled
go / vuln_check (push) Has been cancelled
snapshot of https://github.com/sqlc-dev/sqlc.git (main, 2026-09-16; blobs > 131072B omitted)
2026-09-16 02:17:34 +05:00

137 lines
2.8 KiB
JSON

[
{
"name": "GetAuthorName",
"cmd": ":one",
"columns": [
{
"name": "name",
"type": {
"name": "text"
},
"table": "authors"
}
],
"params": [
{
"number": 1,
"column": {
"name": "id",
"type": {
"name": "bigint"
},
"table": "authors"
}
}
],
"ast": {
"tag": "RawStmt",
"stmt": {
"tag": "SelectStmt",
"distinct_clause": {
"tag": "List"
},
"target_list": {
"tag": "List",
"items": [
{
"tag": "ResTarget",
"indirection": {
"tag": "List"
},
"val": {
"tag": "ColumnRef",
"name": "",
"fields": {
"tag": "List",
"items": [
{
"tag": "String",
"str": "name"
}
]
},
"location": 35
},
"location": 35
}
]
},
"from_clause": {
"tag": "List",
"items": [
{
"tag": "RangeVar",
"relname": "authors",
"inh": true,
"relpersistence": 112,
"location": 45
}
]
},
"where_clause": {
"tag": "A_Expr",
"kind": 1,
"name": {
"tag": "List",
"items": [
{
"tag": "String",
"str": "="
}
]
},
"lexpr": {
"tag": "ColumnRef",
"name": "",
"fields": {
"tag": "List",
"items": [
{
"tag": "String",
"str": "id"
}
]
},
"location": 59
},
"rexpr": {
"tag": "ParamRef",
"number": 1,
"location": 64,
"dollar": true
},
"location": 62
},
"group_clause": {
"tag": "List"
},
"having_clause": {
"tag": "TODO"
},
"window_clause": {
"tag": "List"
},
"values_lists": {
"tag": "List"
},
"sort_clause": {
"tag": "List"
},
"limit_offset": {
"tag": "TODO"
},
"limit_count": {
"tag": "TODO"
},
"locking_clause": {
"tag": "List"
},
"op": 0,
"all": false
},
"stmt_location": 0,
"stmt_len": 66
}
}
]