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

Method convertCreateViewStmt

internal/engine/dolphin/convert.go:912–921  ·  view source on GitHub ↗
(n *pcast.CreateViewStmt)

Source from the content-addressed store, hash-verified

910}
911
912func (c *cc) convertCreateViewStmt(n *pcast.CreateViewStmt) ast.Node {
913 return &ast.ViewStmt{
914 View: c.convertTableName(n.ViewName),
915 Aliases: &ast.List{},
916 Query: c.convert(n.Select),
917 Replace: n.OrReplace,
918 Options: &ast.List{},
919 WithCheckOption: ast.ViewCheckOption(n.CheckOption),
920 }
921}
922
923func (c *cc) convertDeallocateStmt(n *pcast.DeallocateStmt) ast.Node {
924 return todo(n)

Callers 1

convertMethod · 0.95

Calls 3

convertTableNameMethod · 0.95
convertMethod · 0.95
ViewCheckOptionTypeAlias · 0.92

Tested by

no test coverage detected