@@ -4,88 +4,85 @@ package vet;
44
55option go_package = "github.com/kyleconroy/sqlc/internal/vet" ;
66
7- message Parameter
8- {
9- int32 number = 1 [json_name ="number" ];
7+ message Parameter {
8+ int32 number = 1 [json_name = "number" ];
109}
1110
12- message Config
13- {
14- string version = 1 [json_name ="version" ];
15- string engine = 2 [json_name ="engine" ];
16- repeated string schema = 3 [json_name ="schema" ];
17- repeated string queries = 4 [json_name ="queries" ];
11+ message Config {
12+ string version = 1 [json_name = "version" ];
13+ string engine = 2 [json_name = "engine" ];
14+ repeated string schema = 3 [json_name = "schema" ];
15+ repeated string queries = 4 [json_name = "queries" ];
1816}
1917
20- message Query
21- {
22- string sql = 1 [json_name ="sql" ];
23- string name = 2 [json_name ="name" ];
24- string cmd = 3 [json_name ="cmd" ];
25- repeated Parameter params = 4 [json_name ="parameters" ];
18+ message Query {
19+ string sql = 1 [json_name = "sql" ];
20+ string name = 2 [json_name = "name" ];
21+ string cmd = 3 [json_name = "cmd" ];
22+ repeated Parameter params = 4 [json_name = "parameters" ];
2623}
2724
2825message PostgreSQL {
2926 PostgreSQLExplain explain = 1 ;
3027}
3128
3229message PostgreSQLExplain {
33- Plan plan = 1 [json_name = "Plan" ];
34- map <string , string > settings = 2 [json_name = "Settings" ];
35- Planning planning = 3 [json_name = "Planning" ];
30+ Plan plan = 1 [json_name = "Plan" ];
31+ map <string , string > settings = 2 [json_name = "Settings" ];
32+ Planning planning = 3 [json_name = "Planning" ];
3633
3734 message Plan {
38- string node_type = 1 [json_name = "Node Type" ];
39- string parent_relationship = 2 [json_name = "Parent Relationship" ];
40- string relation_name = 3 [json_name = "Relation Name" ];
41- string schema = 4 [json_name = "Schema" ];
42- string alias = 5 [json_name = "Alias" ];
43- bool parallel_aware = 6 [json_name = "Parallel Aware" ];
44- bool async_capable = 7 [json_name = "Async Capable" ];
45- float startup_cost = 8 [json_name = "Startup Cost" ];
46- float total_cost = 9 [json_name = "Total Cost" ];
47- uint64 plan_rows = 10 [json_name = "Plan Rows" ];
48- uint64 plan_width = 11 [json_name = "Plan Width" ];
49- repeated string output = 12 [json_name = "Output" ];
50- repeated Plan plans = 13 [json_name = "Plans" ];
35+ string node_type = 1 [json_name = "Node Type" ];
36+ string parent_relationship = 2 [json_name = "Parent Relationship" ];
37+ string relation_name = 3 [json_name = "Relation Name" ];
38+ string schema = 4 [json_name = "Schema" ];
39+ string alias = 5 [json_name = "Alias" ];
40+ bool parallel_aware = 6 [json_name = "Parallel Aware" ];
41+ bool async_capable = 7 [json_name = "Async Capable" ];
42+ float startup_cost = 8 [json_name = "Startup Cost" ];
43+ float total_cost = 9 [json_name = "Total Cost" ];
44+ uint64 plan_rows = 10 [json_name = "Plan Rows" ];
45+ uint64 plan_width = 11 [json_name = "Plan Width" ];
46+ repeated string output = 12 [json_name = "Output" ];
47+ repeated Plan plans = 13 [json_name = "Plans" ];
5148
5249 // Embedded "Blocks" fields
53- uint64 shared_hit_blocks = 14 [json_name = "Shared Hit Blocks" ];
54- uint64 shared_read_blocks = 15 [json_name = "Shared Read Blocks" ];
55- uint64 shared_dirtied_blocks = 16 [json_name = "Shared Dirtied Blocks" ];
56- uint64 shared_written_blocks = 17 [json_name = "Shared Written Blocks" ];
57- uint64 local_hit_blocks = 18 [json_name = "Local Hit Blocks" ];
58- uint64 local_read_blocks = 19 [json_name = "Local Read Blocks" ];
59- uint64 local_dirtied_blocks = 20 [json_name = "Local Dirtied Blocks" ];
60- uint64 local_written_blocks = 21 [json_name = "Local Written Blocks" ];
61- uint64 temp_read_blocks = 22 [json_name = "Temp Read Blocks" ];
62- uint64 temp_written_blocks = 23 [json_name = "Temp Written Blocks" ];
50+ uint64 shared_hit_blocks = 14 [json_name = "Shared Hit Blocks" ];
51+ uint64 shared_read_blocks = 15 [json_name = "Shared Read Blocks" ];
52+ uint64 shared_dirtied_blocks = 16 [json_name = "Shared Dirtied Blocks" ];
53+ uint64 shared_written_blocks = 17 [json_name = "Shared Written Blocks" ];
54+ uint64 local_hit_blocks = 18 [json_name = "Local Hit Blocks" ];
55+ uint64 local_read_blocks = 19 [json_name = "Local Read Blocks" ];
56+ uint64 local_dirtied_blocks = 20 [json_name = "Local Dirtied Blocks" ];
57+ uint64 local_written_blocks = 21 [json_name = "Local Written Blocks" ];
58+ uint64 temp_read_blocks = 22 [json_name = "Temp Read Blocks" ];
59+ uint64 temp_written_blocks = 23 [json_name = "Temp Written Blocks" ];
6360
6461 // "Node Type": "Sort" fields
65- repeated string sort_key = 24 [json_name = "Sort Key" ];
62+ repeated string sort_key = 24 [json_name = "Sort Key" ];
6663
6764 // "Node Type": "Hash Join" fields
68- string join_type = 25 [json_name = "Join Type" ];
69- bool inner_unique = 26 [json_name = "Inner Unique" ];
70- string hash_cond = 27 [json_name = "Hash Cond" ];
65+ string join_type = 25 [json_name = "Join Type" ];
66+ bool inner_unique = 26 [json_name = "Inner Unique" ];
67+ string hash_cond = 27 [json_name = "Hash Cond" ];
7168
7269 // "Node Type": "Index Scan" fields
73- string index_name = 28 [json_name = "Index Name" ];
74- string scan_direction = 29 [json_name = "Scan Direction" ];
75- string index_cond = 30 [json_name = "Index Cond" ];
70+ string index_name = 28 [json_name = "Index Name" ];
71+ string scan_direction = 29 [json_name = "Scan Direction" ];
72+ string index_cond = 30 [json_name = "Index Cond" ];
7673 }
7774
7875 message Planning {
79- uint64 shared_hit_blocks = 1 [json_name = "Shared Hit Blocks" ];
80- uint64 shared_read_blocks = 2 [json_name = "Shared Read Blocks" ];
81- uint64 shared_dirtied_blocks = 3 [json_name = "Shared Dirtied Blocks" ];
82- uint64 shared_written_blocks = 4 [json_name = "Shared Written Blocks" ];
83- uint64 local_hit_blocks = 5 [json_name = "Local Hit Blocks" ];
84- uint64 local_read_blocks = 6 [json_name = "Local Read Blocks" ];
85- uint64 local_dirtied_blocks = 7 [json_name = "Local Dirtied Blocks" ];
86- uint64 local_written_blocks = 8 [json_name = "Local Written Blocks" ];
87- uint64 temp_read_blocks = 9 [json_name = "Temp Read Blocks" ];
88- uint64 temp_written_blocks = 10 [json_name = "Temp Written Blocks" ];
76+ uint64 shared_hit_blocks = 1 [json_name = "Shared Hit Blocks" ];
77+ uint64 shared_read_blocks = 2 [json_name = "Shared Read Blocks" ];
78+ uint64 shared_dirtied_blocks = 3 [json_name = "Shared Dirtied Blocks" ];
79+ uint64 shared_written_blocks = 4 [json_name = "Shared Written Blocks" ];
80+ uint64 local_hit_blocks = 5 [json_name = "Local Hit Blocks" ];
81+ uint64 local_read_blocks = 6 [json_name = "Local Read Blocks" ];
82+ uint64 local_dirtied_blocks = 7 [json_name = "Local Dirtied Blocks" ];
83+ uint64 local_written_blocks = 8 [json_name = "Local Written Blocks" ];
84+ uint64 temp_read_blocks = 9 [json_name = "Temp Read Blocks" ];
85+ uint64 temp_written_blocks = 10 [json_name = "Temp Written Blocks" ];
8986 }
9087}
9188
0 commit comments