MCPcopy Create free account
hub / github.com/bytebase/bytebase / escapeSingleQuote

Function escapeSingleQuote

backend/plugin/schema/pg/get_database_definition.go:853–855  ·  view source on GitHub ↗
(s string)

Source from the content-addressed store, hash-verified

851}
852
853func escapeSingleQuote(s string) string {
854 return strings.ReplaceAll(s, "'", "''")
855}
856
857// signatureTypesOnly strips parameter names from a function/procedure signature,
858// keeping only types. PostgreSQL's COMMENT ON FUNCTION/PROCEDURE requires

Callers 15

writeCommentFunction · 0.85
writeRoutineCommentFunction · 0.85
writeTriggerCommentFunction · 0.85
writeEventTriggerCommentFunction · 0.85
writeEnumFunction · 0.85
writeEnumCommentFunction · 0.85
writeViewCommentFunction · 0.85
writeSequenceCommentFunction · 0.85
writeIndexCommentFunction · 0.85
writeConstraintCommentFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected