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

IDEN-294: move db layer to pgx lib #8

Closed
wants to merge 2 commits into from

Conversation

ilya-korotya
Copy link
Contributor

Scope of task: https://idyllicvision.atlassian.net/jira/software/projects/IDEN/boards/3?assignee=61af36beebce470067d3a559&selectedIssue=IDEN-294.
We rewrite all the code in the identity server to the pgx library. Since the identity server uses this library that used sqlx we should refactor this library too.

@ilya-korotya ilya-korotya force-pushed the refactor/IDEN-294-change-sqlx-to-pgx branch 2 times, most recently from d696ff6 to f169f6b Compare October 3, 2022 20:19
@ilya-korotya ilya-korotya force-pushed the refactor/IDEN-294-change-sqlx-to-pgx branch from f169f6b to dbd479a Compare October 3, 2022 20:30
for _, v := range items {
k := v.Key[:]
n, err := v.Node()
defer rows.Close()
Copy link
Contributor Author

Choose a reason for hiding this comment

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

@olomix could you explain this magic? Should I close rows all time? Because, all code that I saw, had not used this. Without this line, I was failing unit tests.

@ilya-korotya
Copy link
Contributor Author

We decided implement separate pgx driver: #9

@enricobottazzi enricobottazzi deleted the refactor/IDEN-294-change-sqlx-to-pgx branch December 18, 2022 11:34
@enricobottazzi enricobottazzi restored the refactor/IDEN-294-change-sqlx-to-pgx branch December 18, 2022 11:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant