MCPcopy Index your code
hub / github.com/sqlc-dev/sqlc / ConvertColumn

Function ConvertColumn

internal/compiler/query_catalog.go:66–78  ·  view source on GitHub ↗
(rel *ast.TableName, c *catalog.Column)

Source from the content-addressed store, hash-verified

64}
65
66func 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
80func (qc QueryCatalog) GetTable(rel *ast.TableName) (*Table, error) {
81 cte, exists := qc.ctes[rel.Name]

Callers 1

GetTableMethod · 0.85

Calls 1

dataTypeFunction · 0.85

Tested by

no test coverage detected