* @inheritDoc
(args: ArgumentsCamelCase<ImportArgs>)
| 14 | * @inheritDoc |
| 15 | */ |
| 16 | async handler(args: ArgumentsCamelCase<ImportArgs>) { |
| 17 | const orm = await CLIHelper.getORM(args.contextName, args.config, { multipleStatements: true }); |
| 18 | const buf = await readFile(args.file); |
| 19 | await orm.em.getConnection().executeDump(buf.toString()); |
| 20 | CLIHelper.dump(colors.green(`File ${args.file} successfully imported`)); |
| 21 | await orm.close(true); |
| 22 | } |
| 23 | } |
nothing calls this directly
no test coverage detected