@@ -2,6 +2,7 @@ package python
22
33import (
44 "context"
5+ json "encoding/json"
56 "errors"
67 "fmt"
78 "log"
@@ -10,14 +11,13 @@ import (
1011 "strings"
1112
1213 "buf.build/gen/go/sqlc/sqlc/protocolbuffers/go/protos/plugin"
13- easyjson "github.com/mailru/easyjson"
14- "github.com/tabbed/sqlc-go/metadata"
15- "github.com/tabbed/sqlc-go/sdk"
16-
17- pyast "github.com/tabbed/sqlc-gen-python/internal/ast"
18- "github.com/tabbed/sqlc-gen-python/internal/inflection"
19- "github.com/tabbed/sqlc-gen-python/internal/poet"
20- pyprint "github.com/tabbed/sqlc-gen-python/internal/printer"
14+ "github.com/sqlc-dev/sqlc-go/metadata"
15+ "github.com/sqlc-dev/sqlc-go/sdk"
16+
17+ pyast "github.com/sqlc-dev/sqlc-gen-python/internal/ast"
18+ "github.com/sqlc-dev/sqlc-gen-python/internal/inflection"
19+ "github.com/sqlc-dev/sqlc-gen-python/internal/poet"
20+ pyprint "github.com/sqlc-dev/sqlc-gen-python/internal/printer"
2121)
2222
2323type Constant struct {
@@ -1094,7 +1094,7 @@ func HashComment(s string) string {
10941094func Generate (_ context.Context , req * plugin.CodeGenRequest ) (* plugin.CodeGenResponse , error ) {
10951095 var conf Config
10961096 if len (req .PluginOptions ) > 0 {
1097- if err := easyjson .Unmarshal (req .PluginOptions , & conf ); err != nil {
1097+ if err := json .Unmarshal (req .PluginOptions , & conf ); err != nil {
10981098 return nil , err
10991099 }
11001100 }
0 commit comments