MCPcopy
hub / github.com/sqlc-dev/sqlc / SameTableName

Function SameTableName

internal/codegen/sdk/sdk.go:24–33  ·  view source on GitHub ↗
(tableID, f *plugin.Identifier, defaultSchema string)

Source from the content-addressed store, hash-verified

22}
23
24func SameTableName(tableID, f *plugin.Identifier, defaultSchema string) bool {
25 if tableID == nil {
26 return false
27 }
28 schema := tableID.Schema
29 if tableID.Schema == "" {
30 schema = defaultSchema
31 }
32 return tableID.Catalog == f.Catalog && schema == f.Schema && tableID.Name == f.Name
33}

Callers 1

buildQueriesFunction · 0.92

Calls

no outgoing calls

Tested by

no test coverage detected