Skip to content

Commit

Permalink
sql/internal/specutil: remove unused function (#430)
Browse files Browse the repository at this point in the history
  • Loading branch information
masseelch authored Jan 17, 2022
1 parent 9f37bb6 commit 08a94f5
Showing 1 changed file with 0 additions and 11 deletions.
11 changes: 0 additions & 11 deletions sql/internal/specutil/spec.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,17 +9,6 @@ import (
"ariga.io/atlas/sql/sqlspec"
)

// NewCol is a helper method for constructing *sqlspec.Column instances.
func NewCol(name string, coltype *schemaspec.Type, attrs ...*schemaspec.Attr) *sqlspec.Column {
return &sqlspec.Column{
Name: name,
Type: coltype,
DefaultExtension: schemaspec.DefaultExtension{
Extra: schemaspec.Resource{Attrs: attrs},
},
}
}

// StrAttr is a helper method for constructing *schemaspec.Attr of type string.
func StrAttr(k, v string) *schemaspec.Attr {
return &schemaspec.Attr{
Expand Down

0 comments on commit 08a94f5

Please sign in to comment.