Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -143,10 +143,10 @@ go get github.com/tomodian/deesql

### Verify schema compatibility

Use `pkg/verify` to check `.sql` files or raw SQL strings for DSQL compatibility -- no database connection needed.
Use the `verify` package to check `.sql` files or raw SQL strings for DSQL compatibility -- no database connection needed.

```go
import "github.com/tomodian/deesql/pkg/verify"
import "github.com/tomodian/deesql/verify"

// Check .sql files in directories
violations, err := verify.CheckDirs([]string{"./schema"})
Expand All @@ -167,10 +167,10 @@ violations := verify.CheckSQL("test.sql", `

### Plan and apply migrations

Use `pkg/migrate` to generate and apply migration plans programmatically. You provide your own `*sql.DB` connection.
Use the `migrate` package to generate and apply migration plans programmatically. You provide your own `*sql.DB` connection.

```go
import "github.com/tomodian/deesql/pkg/migrate"
import "github.com/tomodian/deesql/migrate"

// Generate a migration plan
planOut, err := migrate.GeneratePlan(ctx, migrate.GeneratePlanInput{
Expand Down
2 changes: 1 addition & 1 deletion internal/verify/verify.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package verify

import (
pkgverify "github.com/tomodian/deesql/pkg/verify"
pkgverify "github.com/tomodian/deesql/verify"

"github.com/tomodian/deesql/internal/ui"
)
Expand Down
File renamed without changes.
File renamed without changes.
3 changes: 2 additions & 1 deletion tests/tools/Makefile
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
.PHONY: test clean build

IMAGE = deesql:local
ROOT = $(CURDIR)/../..

DEESQL = POSTGRES_USER=admin POSTGRES_PASSWORD=password \
go tool github.com/tomodian/deesql
go run $(ROOT)

build:
docker build -t $(IMAGE) -f ../../images/Dockerfile ../..
Expand Down
File renamed without changes.
Loading