MCPcopy Create free account
hub / github.com/firebase/firebase-tools / diffsToString

Function diffsToString

src/dataconnect/schemaMigration.ts:849–851  ·  view source on GitHub ↗
(diffs: Diff[])

Source from the content-addressed store, hash-verified

847}
848
849function diffsToString(diffs: Diff[]): string {
850 return diffs.map(diffToString).join("\n\n");
851}
852
853function diffToString(diff: Diff) {
854 return `\/** ${diff.destructive ? clc.red("Destructive: ") : ""}${diff.description}*\/\n${format(diff.sql, { language: "postgresql" })}`;

Callers 2

displaySchemaChangesFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…