(c *compiler.Column)
| 167 | } |
| 168 | |
| 169 | func pluginQueryColumn(c *compiler.Column) *plugin.Column { |
| 170 | l := -1 |
| 171 | if c.Length != nil { |
| 172 | l = *c.Length |
| 173 | } |
| 174 | out := &plugin.Column{ |
| 175 | Name: c.Name, |
| 176 | OriginalName: c.OriginalName, |
| 177 | Comment: c.Comment, |
| 178 | NotNull: c.NotNull, |
| 179 | Unsigned: c.Unsigned, |
| 180 | IsArray: c.IsArray, |
| 181 | ArrayDims: int32(c.ArrayDims), |
| 182 | Length: int32(l), |
| 183 | IsNamedParam: c.IsNamedParam, |
| 184 | IsFuncCall: c.IsFuncCall, |
| 185 | IsSqlcSlice: c.IsSqlcSlice, |
| 186 | } |
| 187 | |
| 188 | if c.Type != nil { |
| 189 | out.Type = &plugin.Identifier{ |
| 190 | Catalog: c.Type.Catalog, |
| 191 | Schema: c.Type.Schema, |
| 192 | Name: c.Type.Name, |
| 193 | } |
| 194 | } else { |
| 195 | out.Type = &plugin.Identifier{ |
| 196 | Name: c.DataType, |
| 197 | } |
| 198 | } |
| 199 | |
| 200 | if c.Table != nil { |
| 201 | out.Table = &plugin.Identifier{ |
| 202 | Catalog: c.Table.Catalog, |
| 203 | Schema: c.Table.Schema, |
| 204 | Name: c.Table.Name, |
| 205 | } |
| 206 | } |
| 207 | |
| 208 | if c.EmbedTable != nil { |
| 209 | out.EmbedTable = &plugin.Identifier{ |
| 210 | Catalog: c.EmbedTable.Catalog, |
| 211 | Schema: c.EmbedTable.Schema, |
| 212 | Name: c.EmbedTable.Name, |
| 213 | } |
| 214 | } |
| 215 | |
| 216 | return out |
| 217 | } |
| 218 | |
| 219 | func pluginQueryParam(p compiler.Parameter) *plugin.Parameter { |
| 220 | return &plugin.Parameter{ |
no outgoing calls
no test coverage detected