From e6095869ebbdb1bdc994a0bd690c7799d81db75d Mon Sep 17 00:00:00 2001 From: Andrew Farries Date: Mon, 16 Dec 2024 08:06:37 +0000 Subject: [PATCH] Use `xataio` fork of `pg_query_go` package --- go.mod | 2 +- go.sum | 4 ++-- pkg/sql2pgroll/alter_table.go | 2 +- pkg/sql2pgroll/convert.go | 2 +- pkg/sql2pgroll/create_table.go | 2 +- pkg/sql2pgroll/drop.go | 2 +- pkg/sql2pgroll/rename.go | 2 +- pkg/sql2pgroll/typename.go | 2 +- 8 files changed, 9 insertions(+), 9 deletions(-) diff --git a/go.mod b/go.mod index 7647ead0..3381a867 100644 --- a/go.mod +++ b/go.mod @@ -6,7 +6,6 @@ require ( github.com/cloudflare/backoff v0.0.0-20240920015135-e46b80a3a7d0 github.com/lib/pq v1.10.9 github.com/oapi-codegen/nullable v1.1.0 - github.com/pganalyze/pg_query_go/v6 v6.0.0 github.com/pterm/pterm v0.12.80 github.com/santhosh-tekuri/jsonschema/v5 v5.3.1 github.com/spf13/cobra v1.8.1 @@ -14,6 +13,7 @@ require ( github.com/stretchr/testify v1.10.0 github.com/testcontainers/testcontainers-go v0.34.0 github.com/testcontainers/testcontainers-go/modules/postgres v0.34.0 + github.com/xataio/pg_query_go/v6 v6.0.0-20241216080535-894186571799 golang.org/x/tools v0.28.0 ) diff --git a/go.sum b/go.sum index 7e566a61..3cbb3981 100644 --- a/go.sum +++ b/go.sum @@ -142,8 +142,6 @@ github.com/opencontainers/image-spec v1.1.0 h1:8SG7/vwALn54lVB/0yZ/MMwhFrPYtpEHQ github.com/opencontainers/image-spec v1.1.0/go.mod h1:W4s4sFTMaBeK1BQLXbG4AdM2szdn85PY75RI83NrTrM= github.com/pelletier/go-toml/v2 v2.2.2 h1:aYUidT7k73Pcl9nb2gScu7NSrKCSHIDE89b3+6Wq+LM= github.com/pelletier/go-toml/v2 v2.2.2/go.mod h1:1t835xjRzz80PqgE6HHgN2JOsmgYu/h4qDAS4n929Rs= -github.com/pganalyze/pg_query_go/v6 v6.0.0 h1:in6RkR/apfqlAtvqgDxd4Y4o87a5Pr8fkKDB4DrDo2c= -github.com/pganalyze/pg_query_go/v6 v6.0.0/go.mod h1:nvTHIuoud6e1SfrUaFwHqT0i4b5Nr+1rPWVds3B5+50= github.com/pkg/errors v0.9.1 h1:FEBLx1zS214owpjy7qsBeixbURkuhQAwrK5UwLGTwt4= github.com/pkg/errors v0.9.1/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0= github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4= @@ -219,6 +217,8 @@ github.com/tklauser/go-sysconf v0.3.14 h1:g5vzr9iPFFz24v2KZXs/pvpvh8/V9Fw6vQK5ZZ github.com/tklauser/go-sysconf v0.3.14/go.mod h1:1ym4lWMLUOhuBOPGtRcJm7tEGX4SCYNEEEtghGG/8uY= github.com/tklauser/numcpus v0.8.0 h1:Mx4Wwe/FjZLeQsK/6kt2EOepwwSl7SmJrK5bV/dXYgY= github.com/tklauser/numcpus v0.8.0/go.mod h1:ZJZlAY+dmR4eut8epnzf0u/VwodKmryxR8txiloSqBE= +github.com/xataio/pg_query_go/v6 v6.0.0-20241216080535-894186571799 h1:FUY7PHaOXMicK0kSh32BdLGwd6svrbNZrnup69jG0DM= +github.com/xataio/pg_query_go/v6 v6.0.0-20241216080535-894186571799/go.mod h1:GK6bpfAhPtZb7wG/IccqvnH+cz3cmvvRTkC+MosESGo= github.com/xo/terminfo v0.0.0-20210125001918-ca9a967f8778/go.mod h1:2MuV+tbUrU1zIOPMxZ5EncGwgmMJsa+9ucAQZXxsObs= github.com/xo/terminfo v0.0.0-20220910002029-abceb7e1c41e h1:JVG44RsyaB9T2KIHavMF/ppJZNG9ZpyihvCd0w101no= github.com/xo/terminfo v0.0.0-20220910002029-abceb7e1c41e/go.mod h1:RbqR21r5mrJuqunuUZ/Dhy/avygyECGrLceyNeo4LiM= diff --git a/pkg/sql2pgroll/alter_table.go b/pkg/sql2pgroll/alter_table.go index 74551d02..699757d9 100644 --- a/pkg/sql2pgroll/alter_table.go +++ b/pkg/sql2pgroll/alter_table.go @@ -7,7 +7,7 @@ import ( "strconv" "github.com/oapi-codegen/nullable" - pgq "github.com/pganalyze/pg_query_go/v6" + pgq "github.com/xataio/pg_query_go/v6" "github.com/xataio/pgroll/pkg/migrations" ) diff --git a/pkg/sql2pgroll/convert.go b/pkg/sql2pgroll/convert.go index 69d812a5..a89596c7 100644 --- a/pkg/sql2pgroll/convert.go +++ b/pkg/sql2pgroll/convert.go @@ -5,7 +5,7 @@ package sql2pgroll import ( "fmt" - pgq "github.com/pganalyze/pg_query_go/v6" + pgq "github.com/xataio/pg_query_go/v6" "github.com/xataio/pgroll/pkg/migrations" ) diff --git a/pkg/sql2pgroll/create_table.go b/pkg/sql2pgroll/create_table.go index 5724465a..aed17182 100644 --- a/pkg/sql2pgroll/create_table.go +++ b/pkg/sql2pgroll/create_table.go @@ -3,7 +3,7 @@ package sql2pgroll import ( - pgq "github.com/pganalyze/pg_query_go/v6" + pgq "github.com/xataio/pg_query_go/v6" "github.com/xataio/pgroll/pkg/migrations" ) diff --git a/pkg/sql2pgroll/drop.go b/pkg/sql2pgroll/drop.go index e6303f96..1c9bfcdb 100644 --- a/pkg/sql2pgroll/drop.go +++ b/pkg/sql2pgroll/drop.go @@ -5,7 +5,7 @@ package sql2pgroll import ( "strings" - pgq "github.com/pganalyze/pg_query_go/v6" + pgq "github.com/xataio/pg_query_go/v6" "github.com/xataio/pgroll/pkg/migrations" ) diff --git a/pkg/sql2pgroll/rename.go b/pkg/sql2pgroll/rename.go index 6fbd596a..f3dc5665 100644 --- a/pkg/sql2pgroll/rename.go +++ b/pkg/sql2pgroll/rename.go @@ -3,7 +3,7 @@ package sql2pgroll import ( - pgq "github.com/pganalyze/pg_query_go/v6" + pgq "github.com/xataio/pg_query_go/v6" "github.com/xataio/pgroll/pkg/migrations" ) diff --git a/pkg/sql2pgroll/typename.go b/pkg/sql2pgroll/typename.go index f2c5a11d..372eee0d 100644 --- a/pkg/sql2pgroll/typename.go +++ b/pkg/sql2pgroll/typename.go @@ -6,7 +6,7 @@ import ( "fmt" "strings" - pgq "github.com/pganalyze/pg_query_go/v6" + pgq "github.com/xataio/pg_query_go/v6" ) // convertTypeName converts a TypeName node to a string.