import { getConnection } from "typeorm";
export default async () => { const connection = getConnection(); const entities = connection.entityMetadatas; for (const entity of entities) { const repository = getConnection().getRepository(entity.name); await repository.delete({}); } };
|