Skip to content
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

Merged
merged 7 commits into from
May 21, 2021
Merged

Implement postgresql package #3

merged 7 commits into from
May 21, 2021

Conversation

estherk0
Copy link
Contributor

  • lib/pq와 database/sql을 사용하는 postgresql package 구현

  • 주요 기능

    • Insert / Update / Delete / Get
    • Transaction Begin / Commit
    • 그 외 기능은 필요시 추가 구현
  • go-sqlmock library 를 사용한 unittest code 작성

@estherk0 estherk0 added the enhancement New feature or request label May 20, 2021
@estherk0 estherk0 force-pushed the dev-integrationDB branch from 0396ca2 to 592561a Compare May 20, 2021 01:27
Copy link
Contributor

@zugwan zugwan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

return p.getAll(tx, fields, table)
}

args := getValueSliceFromMaps(conditions)
Copy link
Contributor

@robertchoi80 robertchoi80 May 21, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

변수명을 좀 통일하면 더 좋을 것 같습니다. 지금 함수마다, args, conditionValues 등 다른 이름으로 사용되고 있어서 통일하면 가독성이 더 좋아질거 같아요. 저 개인적으로는 Delete()에 사용하신 방식이 제일 명확한 거 같습니다.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

네 conditionValues, conditionKeySql로 통일 시켰습니다~

Copy link
Contributor

@robertchoi80 robertchoi80 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

추가 의견 남겼습니다

@estherk0 estherk0 requested a review from robertchoi80 May 21, 2021 02:48
@robertchoi80 robertchoi80 merged commit fde19a8 into main May 21, 2021
@ktkfree ktkfree deleted the dev-integrationDB branch November 21, 2022 07:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants