feat(sql-migrate/examples): add pg-todos example app#95
Open
coolaj86 wants to merge 3 commits into
Open
Conversation
8c7f2e4 to
557567e
Compare
52c30a7 to
145f2b6
Compare
6a2c34d to
2ce150f
Compare
2ce150f to
81b5357
Compare
81b5357 to
edb1da6
Compare
edb1da6 to
82c689c
Compare
58c6301 to
b5d9c7f
Compare
82c689c to
36ebd8a
Compare
|
Review the following changes in direct dependencies. Learn more about Socket for GitHub.
|
1647c50 to
32e19dd
Compare
pgmigrate.New now requires *pgx.Conn (not *pgxpool.Pool). The pool is still used for app queries via sqlc/tododb.
Published v1.0.2 still has old API; use local modules until next release.
32e19dd to
b1f6e48
Compare
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Full-featured PostgreSQL todo app demonstrating sqlmigrate + pgmigrate + sqlc:
//go:embed+sqlmigrate.Collect(fsys, "sql/migrations")autoMigratepattern (skipped formigratesubcommand)ON CONFLICT DO NOTHING)sqlmigrate v1.0.1andpgmigrate v1.0.0(no replace directives)Test plan
go build ./...