-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: replace gorm with jmoiron/sqlx (#65)
* feat: add db sql migrations * feat: update migration to golang-migrate * feat: update template repository with sqlx * feat: update tag repository with sqlx * fix: tests and repository mock * refactor(postgres): create a new postgres client abstraction * refactor(postgres): restructure repository * refactor: clean up comment, fixing lint and format * feat(postgres): add test to model's methods * refactor(postgres): rename migrations file name to plural * fix(postgres): fixing unstable test * feat(postgres): update migrations with go embed * refactor(postgres): move model to tag_model * docs: explain a brief behaviour of tag template in postgres * refactor(postgres): simplify repository test * refactor(postgres): update errors to fmt.Errorf * feat(postgres): bump up pgx to v4 * refactor(postgres): convert domain to model with constructor * refactor(postgres): update naming, singular default to domain, singular+suffix model default to model * refactor(tag): update error naming to Err prefix * refactor(tag): simplify method params * fix(tag): fix api behaviour * refactor(tag): revert error to go convention * refactor(postgres): rename templates to tag_templates and fields to tag_template_fields
- Loading branch information
Showing
35 changed files
with
3,573 additions
and
1,624 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.