background_ORM

AMJ·2023년 6월 26일
0

background_log

목록 보기
1/1

참고사이트

ORM

Object Relational Mapping ( SQL / RDBMS )

3 요소

  1. Schema Object
# sql
create table User(
	id integer not null
    name varchar(100)
    );
// js > json type
models.User ={
	id : DATATYPES.INTEGER.NOT_NULL,
  	name : DataTypes.VARCHAR(100)
};
  1. Query Builder
# sql
SELECT id,name FROM User WHERE id = 123;
//js
User.findAll({
  attributes:["id","name"],
  where:{id:123}
});
  1. Migration
    • version control
      • git
      • Jenkins (ci/cd)
profile
재미있는 것들

0개의 댓글