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

Function exportFieldComment

src/utils/exportSQL/shared.js:33–42  ·  view source on GitHub ↗
(comment)

Source from the content-addressed store, hash-verified

31}
32
33export function exportFieldComment(comment) {
34 if (comment === "") {
35 return "";
36 }
37
38 return comment
39 .split("\n")
40 .map((commentLine) => `\t-- ${commentLine}\n`)
41 .join("");
42}
43
44export function uniqueConstraintClause(table, quote) {
45 const constraints = (table.uniqueConstraints || []).filter(

Callers 3

toPostgresFunction · 0.90
toSqliteFunction · 0.90
toTableFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected