데이터 맵퍼, 작업 단위 및 ID 맵 패턴을 기반으로 하는 Node.js 용 TypeScript ORM. MongoDB, MySQL, MariaDB, PostgreSQL 및 SQLite 데이터베이스를 지원합니다.
https://github.com/mikro-orm/mikro-orm
const user = await em.findOneOrFail(User, 1); user.email = 'foo@bar.com'; const car = new Car(); user.cars.add(car); // thanks to bi-directional cascading we only need to persist user entity // flushing will create a transaction, insert new car and update user with new email // as user entity is managed, calling flush() is enough await em.flush();
등록된 댓글이 없습니다.