TypeORM

효딩딩·2022년 10월 24일
0

TypeOrm (Object Relational Mapping) 이란?

  • 이 솔루션의 목표는 항상 최신 JavaScript 기능을 지원하고 몇 가지 테이블이있는 소규모 응용 프로그램부터 여러 데이터베이스가있는 대규모 엔터프라이즈 응용 프로그램에 이르기까지 데이터베이스를 사용하는 모든 종류의 응용 프로그램을 개발하는 데 도움이되는 추가 기능을 제공하는 것임

ORM 의 장단점

장점

  • 선언 , 할당 , 종료 같은 부수적인 코드가 없거나 급격히 줄어듬
  • 각종 객체에 대한 코드를 별도로 작성하기 떄문에 코드의 가독성을 올려줌
  • SQL 의 절차 , 순차적인 접근 방식이 아닌 객체 접근 방식임

단점

  • 완벽하게 ORM 서비스구현이 어려울수 있음
  • 사용하기에 편리함은 있지만 설계가 복잡함
  • 프로젝트 복잡성과 난이도에 따라 퍼포먼스의 큰차이가 있음

출처:
https://velog.io/@tilto0822/TypeORM-%EC%B2%98%EC%9D%8C-%EB%A7%8C%EB%82%98%EB%B3%B8-%ED%98%81%EC%8B%A0
https://mobicon.tistory.com/589
https://dkant.net/2019/06/17/typeorm/


(영문 해석)

What is TypeORM?

  • TypeORM is an Object Relational Mapper library running in node.js and written in TypeScript. TypeScript is an improvement to JavaScript with optional typing. TypeScript is a compiled language. It is not interpreted at run-time. The TypeScript compiler takes TypeScript files (.ts) and compiles them in to JavaScript files (.js).

  • TypeORM supports multiple databases like MySQL, PostgreSQL, MariaDB, SQLite, MS SQL Server, Oracle, SAP Hana and WebSQL. TypeORM is an easy-to-use ORM to scaffold new apps that connect to databases. TypeORM functionality is RDBMS-specific concepts.

Features of TypeORM

TypeORM comes with the following features −

  • Automatically create database table schemes based on your models.
  • Easily insert, update and delete object in the database.
  • Create mapping (one-to-one, one-to-many and many-to-many) between tables.
  • Provides simple CLI commands.

Benefits of TypeORM

  • High quality and loosely-coupled applications.
  • Scalable applications.
  • Easily integrate with other modules.
  • Perfectly fits any architecture from small to enterprise apps.

Source:
https://typeorm.io/
https://blog.logrocket.com/typeorm-object-relational-mapping-node-js/
https://www.tutorialspoint.com/typeorm/typeorm_quick_guide.htm

profile
어제보다 나은 나의 코딩지식

0개의 댓글