mirror of
https://github.com/therootcompany/golib.git
synced 2026-11-04 06:55:00 +00:00
Demonstrates pgmigrate with embedded SQL migrations: up, down, status, and reset commands. Two migrations (init + create-todos) show the minimum viable pattern for using sqlmigrate with PostgreSQL.
23 lines
685 B
Modula-2
23 lines
685 B
Modula-2
module github.com/therootcompany/golib/database/sqlmigrate/pgmigrate/examples/todos
|
|
|
|
go 1.26.1
|
|
|
|
require (
|
|
github.com/jackc/pgx/v5 v5.9.1
|
|
github.com/therootcompany/golib/database/sqlmigrate v1.0.0
|
|
github.com/therootcompany/golib/database/sqlmigrate/pgmigrate v0.0.0
|
|
)
|
|
|
|
require (
|
|
github.com/jackc/pgpassfile v1.0.0 // indirect
|
|
github.com/jackc/pgservicefile v0.0.0-20240606120523-5a60cdf6a761 // indirect
|
|
github.com/jackc/puddle/v2 v2.2.2 // indirect
|
|
golang.org/x/sync v0.17.0 // indirect
|
|
golang.org/x/text v0.29.0 // indirect
|
|
)
|
|
|
|
replace (
|
|
github.com/therootcompany/golib/database/sqlmigrate => ../../..
|
|
github.com/therootcompany/golib/database/sqlmigrate/pgmigrate => ../..
|
|
)
|