Golang ORM - Bun 삽질 이야기 - Automatic timestamp
Golang에서의 경량 ORM으로서의 bun package를 다루며 경험한 내용을 정리해둔다. Automatic timestamp 링크: https://bun.uptrace.dev/guide/models.html#automatic-timestamps INSERT 시에 생성한 시간을 자동으로 추가하도록 하는 기능이다. Example code with comment 아래 코드와 코멘트로 설명을 마무리 한다. 전체 GitHub Repo: https://github.com/nicewook/bun-orm-study Query Building Example: https://github.com/nicewook/bun-orm-study/blob/main/default-timestamp/main.go bun 태그의 의미..
golang
2022. 12. 10. 02:44
반응형
최근에 올라온 글
최근에 달린 댓글
- Total
- Today
- Yesterday
TAG
- postgres
- Gin
- 인텔리제이
- 독서후기
- API
- ChatGPT
- Shortcut
- bun
- agile
- github
- 잡학툰
- Bug
- strange
- intellij
- OpenAI
- folklore
- go
- 명상
- ORM
- notion
- websocket
- 체호프
- golang
- 중용
- 영화
- 2023
- 노션
- 클린 애자일
- pool
- solid
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
글 보관함