longcelot-sheet-db
Version:
Google Sheets-backed staging database adapter for Node.js with schema-first design
24 lines • 1.23 kB
JavaScript
;
var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.exportDataCommand = exportDataCommand;
exports.generateExportDataScript = generateExportDataScript;
const chalk_1 = __importDefault(require("chalk"));
const migrate_data_1 = require("./migrate-data");
/**
* @deprecated `lsdb export-data` is deprecated — use `lsdb migrate-data` instead.
* Kept for backward compatibility; the data-export behaviour is unchanged.
*/
async function exportDataCommand(options) {
console.warn(chalk_1.default.yellow('⚠️ Deprecation: `lsdb export-data` is renamed to `lsdb migrate-data`.\n' +
' Update your scripts to use `lsdb migrate-data` — the old name will be removed in a future release.\n'));
return (0, migrate_data_1.migrateDataCommand)(options);
}
// Re-exported for anyone importing directly from the old module path.
function generateExportDataScript(schemas, allUsers = false) {
return (0, migrate_data_1.generateMigrateDataScript)(schemas, allUsers);
}
exports.default = exportDataCommand;
//# sourceMappingURL=export-data.js.map