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
- notion
- 독서
- 인텔리제이
- strange
- Gin
- API
- OpenAI
- agile
- postgres
- 영화
- clean agile
- 독서후기
- 잡학툰
- go
- intellij
- github
- 체호프
- bun
- gocore
- 오블완
- solid
- 티스토리챌린지
- Echo
- ChatGPT
- middleware
- 클린 애자일
- websocket
- golang
- backend
- MCP
| 일 | 월 | 화 | 수 | 목 | 금 | 토 |
|---|---|---|---|---|---|---|
| 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 |
글 보관함