MCPcopy
hub / github.com/sqlc-dev/sqlc / commentOnView

Method commentOnView

internal/sql/catalog/comment_on.go:65–76  ·  view source on GitHub ↗
(stmt *ast.CommentOnViewStmt)

Source from the content-addressed store, hash-verified

63}
64
65func (c *Catalog) commentOnView(stmt *ast.CommentOnViewStmt) error {
66 _, t, err := c.getTable(stmt.View)
67 if err != nil {
68 return err
69 }
70 if stmt.Comment != nil {
71 t.Comment = *stmt.Comment
72 } else {
73 t.Comment = ""
74 }
75 return nil
76}

Callers 1

UpdateMethod · 0.95

Calls 1

getTableMethod · 0.95

Tested by

no test coverage detected