MCPcopy Index your code
hub / github.com/bytebase/bytebase / ColumnResource

Struct ColumnResource

backend/plugin/parser/base/span.go:94–105  ·  view source on GitHub ↗

ColumnResource is the resource key for a column.

Source from the content-addressed store, hash-verified

92
93// ColumnResource is the resource key for a column.
94type ColumnResource struct {
95 // Server is the normalized server name, it's empty if the column comes from the connected server.
96 Server string
97 // Database is the normalized database name, it should not be empty.
98 Database string
99 // Schema is the normalized schema name, it should not be empty for the engines that support schema, and should be empty for the engines that don't support schema.
100 Schema string
101 // Table is the normalized table name, it should not be empty.
102 Table string
103 // Column is the normalized column name, it should not be empty.
104 Column string
105}
106
107// String returns the string format of the column resource.
108func (c ColumnResource) String() string {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected