Last active
May 1, 2021 13:02
-
-
Save utkarshmani1997/a14a8af97792216ace81315b4b096356 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
| package database | |
| //go:generate mockgen -destination=mocks/mock_users.go -package=mocks github.com/utkarshmani1997/talks/12Dec2020/techniques/mocking/sample_app/database Users | |
| const ( | |
| insertQuery = ` | |
| INSERT INTO users (age, email, first_name, last_name) | |
| VALUES ($1, $2, $3, $4) | |
| RETURNING id | |
| ` | |
| ) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment