-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Implement postgresql package #3
Conversation
0396ca2
to
592561a
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
pkg/postgresql/accessor.go
Outdated
return p.getAll(tx, fields, table) | ||
} | ||
|
||
args := getValueSliceFromMaps(conditions) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
변수명을 좀 통일하면 더 좋을 것 같습니다. 지금 함수마다, args, conditionValues 등 다른 이름으로 사용되고 있어서 통일하면 가독성이 더 좋아질거 같아요. 저 개인적으로는 Delete()에 사용하신 방식이 제일 명확한 거 같습니다.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
네 conditionValues, conditionKeySql로 통일 시켰습니다~
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
추가 의견 남겼습니다
lib/pq와 database/sql을 사용하는 postgresql package 구현
주요 기능
go-sqlmock library 를 사용한 unittest code 작성