Function
ConvertColumn
(rel *ast.TableName, c *catalog.Column)
Source from the content-addressed store, hash-verified
| 64 | } |
| 65 | |
| 66 | func ConvertColumn(rel *ast.TableName, c *catalog.Column) *Column { |
| 67 | return &Column{ |
| 68 | Table: rel, |
| 69 | Name: c.Name, |
| 70 | DataType: dataType(&c.Type), |
| 71 | NotNull: c.IsNotNull, |
| 72 | Unsigned: c.IsUnsigned, |
| 73 | IsArray: c.IsArray, |
| 74 | ArrayDims: c.ArrayDims, |
| 75 | Type: &c.Type, |
| 76 | Length: c.Length, |
| 77 | } |
| 78 | } |
| 79 | |
| 80 | func (qc QueryCatalog) GetTable(rel *ast.TableName) (*Table, error) { |
| 81 | cte, exists := qc.ctes[rel.Name] |
Tested by
no test coverage detected