forked from boos/BoosAPI
test:Add database migration service with normalization and masking functions
- Implemented `normalizeMigrationInput` to standardize database migration input for sqlite, mysql, and postgres. - Added `maskConnectionString` to obscure sensitive credentials in connection strings. - Created comprehensive tests for migration input normalization and connection string masking. - Established database schema creation logic for multiple dialects (sqlite, mysql, postgres). - Developed functions for managing database transactions, including begin, commit, and rollback. - Implemented data insertion logic from backup snapshots into the target database.
This commit is contained in:
@@ -4,7 +4,9 @@
|
||||
"module": "NodeNext",
|
||||
"moduleResolution": "NodeNext",
|
||||
"outDir": "dist/server",
|
||||
"rootDir": "src/server"
|
||||
"rootDir": "src/server",
|
||||
"noImplicitAny": false
|
||||
},
|
||||
"include": ["src/server/**/*"]
|
||||
"include": ["src/server/**/*.ts"],
|
||||
"exclude": ["src/server/**/*.test.ts"]
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user