sunary / sqlize

powerful SQL toolkit; offering parsing, building, and migration capabilities.
Other
97 stars 11 forks source link

Error on postgresql #12

Closed alvarogf97 closed 2 years ago

alvarogf97 commented 2 years ago

Hi there!

I'm trying to use this package but I am getting this error

/go/pkg/mod/github.com/sunary/sqlize@v0.0.0-20211007103727-6da80fb5114d/sql-parser/postgresql.go:15:18: cannot use sql (type string) as type "github.com/auxten/postgresql-parser/pkg/sql/parser".Statements in argument to w.Walk

I'm getting this issue when I tried to compile a main.go with the following sentence:

newMigration := sqlize.NewSqlize(sqlize.WithSqlTag("sql"), sqlize.WithMigrationFolder("./migrations"), sqlize.WithPostgresql())

Thanks in advance!

sunary commented 2 years ago

Thank you @alvarogf97, I will resolve it soon