UNPKG

ddl-manager

Version:

store postgres procedures and triggers in files

16 lines (14 loc) 429 B
import { DatabaseFunction } from "../schema/DatabaseFunction"; import { wrapText } from "./wrapText"; export function getUnfreezeFunctionSql(func: DatabaseFunction) { let prefix = ""; if ( func.comment ) { prefix = func.comment + "\n"; } const funcIdentifySql = func.getSignature(); return ` comment on function ${ funcIdentifySql } is ${wrapText( prefix + "ddl-manager-sync" )} `; }