@@ -81,12 +81,12 @@ type GreetInput struct {
8181}
8282
8383type HierarchyInput struct {
84- Provider string `json:"provider" yaml:"provider"`
85- Service string `json:"service" yaml:"service"`
86- Resource string `json:"resource" yaml:"resource"`
87- Method string `json:"method" yaml:"method"`
88- RowLimit int `json:"row_limit" yaml:"row_limit"`
89- Format string `json:"format" yaml:"format"`
84+ Provider string `json:"provider,omitempty " yaml:"provider,omitempty "`
85+ Service string `json:"service,omitempty " yaml:"service,omitempty "`
86+ Resource string `json:"resource,omitempty " yaml:"resource,omitempty "`
87+ Method string `json:"method,omitempty " yaml:"method,omitempty "`
88+ RowLimit int `json:"row_limit,omitempty " yaml:"row_limit,omitempty "`
89+ Format string `json:"format,omitempty " yaml:"format,omitempty "`
9090 // Parameters map[string]any `json:"parameters,omitempty" yaml:"parameters,omitempty"`
9191}
9292
@@ -98,25 +98,25 @@ type ServerInfoOutput struct {
9898
9999type QueryInput struct {
100100 SQL string `json:"sql" yaml:"sql"`
101- RowLimit int `json:"row_limit" yaml:"row_limit"`
102- Format string `json:"format" yaml:"format"`
101+ RowLimit int `json:"row_limit,omitempty " yaml:"row_limit,omitempty "`
102+ Format string `json:"format,omitempty " yaml:"format,omitempty "`
103103 // Parameters map[string]any `json:"parameters,omitempty" yaml:"parameters,omitempty"`
104104}
105105
106106type QueryJSONInput struct {
107107 SQL string `json:"sql" yaml:"sql"`
108- RowLimit int `json:"row_limit" yaml:"row_limit"`
108+ RowLimit int `json:"row_limit,omitempty " yaml:"row_limit,omitempty "`
109109 // Parameters map[string]any `json:"parameters,omitempty" yaml:"parameters,omitempty"`
110110}
111111
112112type ListSchemasInput struct {
113- IncludeSystem bool `json:"include_system" yaml:"include_system"`
114- IncludeTemp bool `json:"include_temp" yaml:"include_temp"`
115- RequireUsage bool `json:"require_usage" yaml:"require_usage"`
116- RowLimit int `json:"row_limit" yaml:"row_limit"`
113+ IncludeSystem bool `json:"include_system,omitempty " yaml:"include_system,omitempty "`
114+ IncludeTemp bool `json:"include_temp,omitempty " yaml:"include_temp,omitempty "`
115+ RequireUsage bool `json:"require_usage,omitempty " yaml:"require_usage,omitempty "`
116+ RowLimit int `json:"row_limit,omitempty " yaml:"row_limit,omitempty "`
117117 NameLike * string `json:"name_like,omitempty" yaml:"name_like,omitempty"`
118- CaseSensitive bool `json:"case_sensitive" yaml:"case_sensitive"`
119- Format string `json:"format" yaml:"format"`
118+ CaseSensitive bool `json:"case_sensitive,omitempty " yaml:"case_sensitive,omitempty "`
119+ Format string `json:"format,omitempty " yaml:"format,omitempty "`
120120}
121121
122122type ListSchemasPageInput struct {
@@ -133,18 +133,18 @@ type ListSchemasPageInput struct {
133133type ListTablesInput struct {
134134 Hierarchy * HierarchyInput `json:"hierarchy,omitempty" yaml:"hierarchy,omitempty"`
135135 NameLike * string `json:"name_like,omitempty" yaml:"name_like,omitempty"`
136- CaseSensitive bool `json:"case_sensitive" yaml:"case_sensitive"`
136+ CaseSensitive bool `json:"case_sensitive,omitempty " yaml:"case_sensitive,omitempty "`
137137 TableTypes []string `json:"table_types,omitempty" yaml:"table_types,omitempty"`
138- RowLimit int `json:"row_limit" yaml:"row_limit"`
139- Format string `json:"format" yaml:"format"`
138+ RowLimit int `json:"row_limit,omitempty " yaml:"row_limit,omitempty "`
139+ Format string `json:"format,omitempty " yaml:"format,omitempty "`
140140}
141141
142142type ListTablesPageInput struct {
143143 Hierarchy * HierarchyInput `json:"hierarchy,omitempty" yaml:"hierarchy,omitempty"`
144144 NameLike * string `json:"name_like,omitempty" yaml:"name_like,omitempty"`
145- CaseSensitive bool `json:"case_sensitive" yaml:"case_sensitive"`
145+ CaseSensitive bool `json:"case_sensitive,omitempty " yaml:"case_sensitive,omitempty "`
146146 TableTypes []string `json:"table_types,omitempty" yaml:"table_types,omitempty"`
147- PageSize int `json:"page_size" yaml:"page_size"`
147+ PageSize int `json:"page_size,omitempty " yaml:"page_size,omitempty "`
148148 Cursor * string `json:"cursor,omitempty" yaml:"cursor,omitempty"`
149- Format string `json:"format" yaml:"format"`
149+ Format string `json:"format,omitempty " yaml:"format,omitempty "`
150150}
0 commit comments