본문 바로가기

Deve.haeri

검색하기
Deve.haeri
프로필사진 hhaeri

  • 분류 전체보기 (126)
    • Java (31)
    • DB (9)
    • HTML-CSS (23)
    • JSP (1)
    • Spring (0)
    • Quiz (41)
      • 01.input (8)
      • 02.random (6)
      • 03.control (12)
      • oop (1)
      • 04.Array (11)
    • 프로젝트 (2)
    • etc (1)
    • Go (2)
    • Container (8)
    • Git (3)
    • linux (3)
    • node (1)
Guestbook
Notice
Recent Posts
Recent Comments
Link
«   2025/07   »
일 월 화 수 목 금 토
1 2 3 4 5
6 7 8 9 10 11 12
13 14 15 16 17 18 19
20 21 22 23 24 25 26
27 28 29 30 31
Tags
  • GORM
  • Container
  • nodemon
  • linux
  • node
  • NGINX
  • k8s
  • docker-compose
  • kubernetes
  • db
  • 쿠버네티스
  • kubernetes #container
  • docker
  • docker install
  • html
  • Git
  • golang
  • GitHub
  • kubespray
  • mariadb
  • regexp
  • npm
  • ansible
  • vscoe
  • bash
  • Delete
  • ubuntu
  • time_zone
  • kube
  • go
more
Archives
Today
Total
관리 메뉴
  • 글쓰기
  • 방명록
  • RSS
  • 관리

목록golang (1)

Deve.haeri

[Golang] GORM 설치하기

ORM : 데이터베이스와 객체를 매핑해주는 것 객체지향 프로그래밍은 클래스를 사용하고 관계형 데이터베이스는 테이블을 사용한다 그렇기 때문에 객체 모델과 관계형 모델 간에 불일치가 존재한다. 이 부분을 ORM을 통해 SQL을 자동으로 생성하여 해결한다. GORM : GO에서 ORM 기반 개발이 가능하도록 도와주는 라이브러리 1. 전제(선행) 조건 Database 설치 (mariaDB, mysql, percona 등) golang 개발 환경 2. GORM 설치 $ go get "github.com/jinzhu/gorm" $ go get -u gorm.io/gorm $ go get -u gorm.io/driver/sqlite

Go 2022. 7. 6. 12:47
Prev 1 Next

Blog is powered by kakao / Designed by Tistory

티스토리툴바