댓글 검색 목록

[Nodejs] 데이터 맵퍼, 작업 단위 및 ID 맵 패턴을 기반으로 하는 TypeScript ORM. MongoDB, PostgreSQL, …

페이지 정보

작성자 운영자 작성일 19-12-18 23:04 조회 562 댓글 0

데이터 맵퍼, 작업 단위 및 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();






댓글목록 0

등록된 댓글이 없습니다.

웹학교 로고

온라인 코딩학교

코리아뉴스 2001 - , All right reserved.