UNPKG

sequelae-mcp

Version:

Let Claude, Cursor, and other AI agents run real SQL queries on live Postgres databases. No more copy-pasting SQL, stale schema docs, or hallucinated DB adapters — just raw, real-time access. Now with MCP support!

17 lines 772 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.validateBackupOptions = validateBackupOptions; function validateBackupOptions(options) { const validFormats = ['plain', 'custom', 'tar', 'directory']; if (options.format && !validFormats.includes(options.format)) { throw new Error(`Invalid backup format: ${options.format}. Must be one of: ${validFormats.join(', ')}`); } if (options.outputPath !== undefined && options.outputPath === '') { throw new Error('Output path cannot be empty'); } // Tables can be empty array or undefined if (options.tables && !Array.isArray(options.tables)) { throw new Error('Tables must be an array'); } } //# sourceMappingURL=backup-validator.js.map