MCPcopy Create free account
hub / github.com/cloudspannerecosystem/spanner-cli / extractSchemaAndTable

Function extractSchemaAndTable

statement.go:756–762  ·  view source on GitHub ↗
(s string)

Source from the content-addressed store, hash-verified

754}
755
756func extractSchemaAndTable(s string) (string, string) {
757 schema, table, found := strings.Cut(s, ".")
758 if !found {
759 return "", unquoteIdentifier(s)
760 }
761 return unquoteIdentifier(schema), unquoteIdentifier(table)
762}
763
764type ShowIndexStatement struct {
765 Schema string

Callers 2

Calls 1

unquoteIdentifierFunction · 0.85

Tested by 1