UNPKG

ddl-manager

Version:

store postgres procedures and triggers in files

27 lines 652 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.Spaces = void 0; const ONE_LEVEL_SPACES = " "; class Spaces { constructor(level = 0) { this.level = level; } static empty() { return new Spaces(); } static level(level) { return new Spaces(level); } toString() { let outputSpaces = ""; for (let i = 0; i < this.level; i++) { outputSpaces += ONE_LEVEL_SPACES; } return outputSpaces; } plusOneLevel() { return new Spaces(this.level + 1); } } exports.Spaces = Spaces; //# sourceMappingURL=Spaces.js.map