| | |
| | | '--database=battery_detection', '--batch', '--skip-column-names', '-e', sql]).stdout.trim() |
| | | } |
| | | |
| | | // 仅操作本次启动的临时容器,用于受控验收数据及事务故障注入。 |
| | | executeIsolatedSql(sql: string) { |
| | | return this.dockerRun(['exec', this.mysqlContainer, 'mysql', '-uroot', `-p${mysqlPassword}`, |
| | | '--database=battery_detection', '--default-character-set=utf8mb4', '-e', sql]).stdout |
| | | } |
| | | |
| | | redisCommand(...args: string[]) { |
| | | const result = this.dockerRun([ |
| | | 'exec', this.redisContainer, 'redis-cli', '-a', redisPassword, '--no-auth-warning', '--raw', ...args, |