MCPcopy Create free account
hub / github.com/cockroachdb/cockroachdb-parser / ParseQualifiedTableName

Function ParseQualifiedTableName

pkg/sql/parser/parse.go:276–283  ·  view source on GitHub ↗

ParseQualifiedTableName parses a possibly qualified table name. The table name must contain one or more name parts, using the full input SQL syntax: each name part containing special characters, or non-lowercase characters, must be enclosed in double quote. The name may not be an invalid table name

(sql string)

Source from the content-addressed store, hash-verified

274// for guaranteeing that only valid table names are provided as
275// input).
276func ParseQualifiedTableName(sql string) (*tree.TableName, error) {
277 name, err := ParseTableName(sql)
278 if err != nil {
279 return nil, err
280 }
281 tn := name.ToTableName()
282 return &tn, nil
283}
284
285// ParseTableName parses a table name. The table name must contain one
286// or more name parts, using the full input SQL syntax: each name

Callers

nothing calls this directly

Calls 2

ParseTableNameFunction · 0.85
ToTableNameMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…