MCPcopy Create free account
hub / github.com/bytebase/bytebase / extractTableName

Function extractTableName

backend/plugin/parser/tidb/resource_change.go:361–371  ·  view source on GitHub ↗
(n *tidbast.TableName)

Source from the content-addressed store, hash-verified

359}
360
361func extractTableName(n *tidbast.TableName) ([]table, error) {
362 if n == nil {
363 return nil, nil
364 }
365 return []table{
366 {
367 table: n.Name.O,
368 database: n.Schema.O,
369 },
370 }, nil
371}

Callers 1

extractResultSetNodeFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected