Lesson 37 of 56
TypescriptDatabase Access with TypeORM
25 minutes
Course progress66%
Install
npm i typeorm reflect-metadata sqlite3
npm i -D @types/node
Add import 'reflect-metadata'; once.
Entity definition
import { Entity, PrimaryGeneratedColumn, Column } from 'typeorm';
()
{
()
id!: ;
({ : })
name!: ;
({ : , : })
?: ;
}