refactor: 移除 SQLite 支持,仅保留 MySQL

This commit is contained in:
2026-08-05 17:43:13 +08:00
parent 81e622fa09
commit 47720a8fcc
35 changed files with 111 additions and 1961 deletions

View File

@@ -284,9 +284,7 @@ export class WalletsService {
let query = manager
.createQueryBuilder(StudentWallet, 'wallet')
.where('wallet.studentId = :studentId', { studentId });
if (['mysql', 'mariadb', 'postgres', 'cockroachdb'].includes(this.dataSource.options.type)) {
query = query.setLock('pessimistic_write');
}
query = query.setLock('pessimistic_write');
return query.getOne();
};
let wallet = await find();