port dump-db and other tools to TS

This commit is contained in:
Jin
2024-08-10 18:23:49 +02:00
parent 2cc34efbde
commit b83c6023c4
18 changed files with 1197 additions and 518 deletions

View File

@@ -0,0 +1,7 @@
#!/usr/bin/env node
import anonymizationService from '../src/services/anonymization.js';
import fs from 'fs';
import path from 'path';
fs.writeFileSync(path.resolve(__dirname, 'tpl', 'anonymize-database.sql'), anonymizationService.getFullAnonymizationScript());