MCPcopy Create free account
hub / github.com/chainreactors/EvilProxy / fullTableName

Method fullTableName

internal/store/postgresstore.go:632–637  ·  view source on GitHub ↗
(name string)

Source from the content-addressed store, hash-verified

630}
631
632func (s *PostgresStore) fullTableName(name string) string {
633 if strings.TrimSpace(s.cfg.Schema) == "" {
634 return quoteIdentifier(name)
635 }
636 return quoteIdentifier(s.cfg.Schema) + "." + quoteIdentifier(name)
637}
638
639func quoteIdentifier(identifier string) string {
640 replaced := strings.ReplaceAll(identifier, "\"", "\"\"")

Callers 8

EnsureSchemaMethod · 0.95
ListMethod · 0.95
syncAuthFromDatabaseMethod · 0.95
persistAuthMethod · 0.95
deleteAuthRecordMethod · 0.95
persistConfigMethod · 0.95
deleteConfigRecordMethod · 0.95

Calls 1

quoteIdentifierFunction · 0.85

Tested by

no test coverage detected