@phoenixq/hamtgen-nest-entity v1.0.18
Mysql Table Schema to NestJS DB Table Entity Class Generator.
안녕하세요. NestJS의 열기가 뜨거운 요즘입니다. 프로젝트 진행시 엔티티클래스를 설계하여 테이블을 생성 시키는 분들은 이 패키지가 필요하지 않습니다. 이 패키지는 테이블을 먼저 설계한 이후에 NestJS 프로젝에 이미 설계했던 MySQL or MariaDB 테이블에 매칭되는 Entity 클래스 자동으로 생성되길 바라는 분들을 위해 제작 한 패키지입니다.
여러분의 시간을 아끼는데 이 패키지가 도움이 되었으면 좋겠습니다.
즐거운 코딩 하세요!
설치 방법
npm install -g @phoenixq/hamtgen-nest-entity
사용 방법
- hamtgen-nest-entity 콘솔에서 실행
- db host 주소 입력
- db 접속 아이디 입력
- db 접속 패스워드 입력
- db 이름 입력
- 테이블 리스트 중 엔티티 생성을 원하는 테이블 선택 (위/아래 화살표로 이동 가능. 스페이스로 선택/해제 가능. 완료시 엔터키를 누르세요.)
엔티티 클래스 파일이 생성되는 위치는 명령을 수행하고 있는 그 폴더에 생성됩니다. 실제 entities 디렉토리 안에서 하지 마시고 entities/tmp 처럼 하위 폴더를 만들어 그 안에 들어가서 생성하길 추천합니다.
혹시 이미 설계하고 제작한 클래스 파일을 재 실행시 덮어 쓰기 때문입니다.
tmp폴더 내에서 실행하여 생성 후 검수한 이후 상위 디렉토리로 move 하시면서 사용하시길 추천합니다.
English Description
Mysql Table Schema to NestJS DB Table Entity Class Generator.
hello . The heat of NestJS is hot these days. This package is not required for those who design an entity class to create a table during the project. This package is for those who want to design the table first and then automatically create an Entity class that matches the MySQL or MariaDB table that you have already designed in the NestJS project.
I hope this package will be helpful to save your time.
Have fun coding!
how to install
npm install -g @phoenixq/hamtgen-nest-entity
how to use
- Running on the
hamtgen-nest-entity
console - Enter the db host address
- Enter the db access ID
- Enter the db connection password
- db enter name
Select the table from the table list where you want to create an entity (you can move it with the up/down arrow. Selectable/can be selected/can be delimited as a space. Press Enter when you're done.) The location where the entity class file is created is created in the folder that is performing the command. It is recommended that you do not do it in the actual entities directory, but create a subfolder like entities/tmp and create it in it.
This is because the class file you have already designed and created is overwritten when you rerun it. It is recommended to run it in the tmp folder, create it, inspect it, and then move it to the parent directory.
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago