Compare commits
1 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 0d45841bc6 |
@@ -14,13 +14,13 @@ A PostgreSQL schema migration tool that generates and applies migrations by comp
|
|||||||
### As a Library
|
### As a Library
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
go get git.petrovv.com/go-migrate
|
go get git.petrovv.com/nikola/go_sql_schema_migrate
|
||||||
```
|
```
|
||||||
|
|
||||||
### CLI Tool
|
### CLI Tool
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
go install git.petrovv.com/go-migrate/cmd/go-migrate@latest
|
go install git.petrovv.com/nikola/go_sql_schema_migrate/cmd/go-migrate@latest
|
||||||
```
|
```
|
||||||
|
|
||||||
## Usage
|
## Usage
|
||||||
@@ -28,7 +28,7 @@ go install git.petrovv.com/go-migrate/cmd/go-migrate@latest
|
|||||||
### Library
|
### Library
|
||||||
|
|
||||||
```go
|
```go
|
||||||
import "git.petrovv.com/go-migrate"
|
import "git.petrovv.com/nikola/go_sql_schema_migrate"
|
||||||
|
|
||||||
ctx := context.Background()
|
ctx := context.Background()
|
||||||
db, _ := pgxpool.New(ctx, "postgres://user:pass@localhost:5432/db")
|
db, _ := pgxpool.New(ctx, "postgres://user:pass@localhost:5432/db")
|
||||||
|
|||||||
Reference in New Issue
Block a user