MCPcopy Create free account
hub / github.com/dolthub/doltgresql / nodeShowCreate

Function nodeShowCreate

server/ast/show_create.go:24–38  ·  view source on GitHub ↗

nodeShowCreate handles *tree.ShowCreate nodes.

(ctx *Context, node *tree.ShowCreate)

Source from the content-addressed store, hash-verified

22
23// nodeShowCreate handles *tree.ShowCreate nodes.
24func nodeShowCreate(ctx *Context, node *tree.ShowCreate) (vitess.Statement, error) {
25 if node == nil {
26 return nil, nil
27 }
28
29 tableName, err := nodeUnresolvedObjectName(ctx, node.Name)
30 if err != nil {
31 return nil, err
32 }
33
34 return &vitess.Show{
35 Type: vitess.CreateTableStr,
36 Table: tableName,
37 }, nil
38}

Callers 1

ConvertFunction · 0.85

Calls 1

nodeUnresolvedObjectNameFunction · 0.85

Tested by

no test coverage detected