MCPcopy
hub / github.com/drawdb-io/drawdb / escapeQuotes

Function escapeQuotes

src/utils/exportSQL/shared.js:29–31  ·  view source on GitHub ↗
(str)

Source from the content-addressed store, hash-verified

27}
28
29export function escapeQuotes(str) {
30 return str.replace(/[']/g, "'$&");
31}
32
33export function exportFieldComment(comment) {
34 if (comment === "") {

Callers 15

toPostgresFunction · 0.90
jsonToMySQLFunction · 0.90
jsonToPostgreSQLFunction · 0.90
jsonToMariaDBFunction · 0.90
toMariaDBFunction · 0.90
toMySQLFunction · 0.90
columnDefinitionFunction · 0.90
toTableFunction · 0.90
toTypeDefinitionFunction · 0.90
toEnumDefinitionFunction · 0.90
generateMigrationSQLFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected