Skip to content

Commit 4e909a7

Browse files
committed
feat: Rename to sqlc-dev/plugin-sdk-go
1 parent 6952bc2 commit 4e909a7

File tree

5 files changed

+8
-9
lines changed

5 files changed

+8
-9
lines changed

codegen/codegen.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@ package codegen
33
import (
44
"context"
55

6-
"github.com/sqlc-dev/sqlc-go/internal/rpc"
7-
pb "github.com/sqlc-dev/sqlc-go/plugin"
6+
"github.com/sqlc-dev/plugin-sdk-go/internal/rpc"
7+
pb "github.com/sqlc-dev/plugin-sdk-go/plugin"
88
)
99

1010
type Handler func(context.Context, *pb.GenerateRequest) (*pb.GenerateResponse, error)

codegen/server.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ package codegen
33
import (
44
"context"
55

6-
pb "github.com/sqlc-dev/sqlc-go/plugin"
6+
pb "github.com/sqlc-dev/plugin-sdk-go/plugin"
77
)
88

99
type server struct {

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
module github.com/sqlc-dev/sqlc-go
1+
module github.com/sqlc-dev/plugin-sdk-go
22

33
go 1.19
44

internal/rpc/handler.go

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,7 @@ import (
1414
"google.golang.org/protobuf/proto"
1515
"google.golang.org/protobuf/reflect/protoreflect"
1616

17-
"github.com/sqlc-dev/sqlc-go/plugin"
18-
pb "github.com/sqlc-dev/sqlc-go/plugin"
17+
pb "github.com/sqlc-dev/plugin-sdk-go/plugin"
1918
)
2019

2120
func Handle(server pb.CodegenServiceServer) {
@@ -109,7 +108,7 @@ func (s *stdioRPCHandler) processUnaryRPC(srv *serviceInfo, md *grpc.MethodDesc)
109108
// TODO make this generic
110109
switch md.MethodName {
111110
case "Generate":
112-
var req plugin.GenerateRequest
111+
var req pb.GenerateRequest
113112
if err := proto.Unmarshal(reqBytes, &req); err != nil {
114113
return err
115114
}

sdk/sdk.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
package sdk
22

33
import (
4-
pb "github.com/sqlc-dev/sqlc-go/plugin"
4+
pb "github.com/sqlc-dev/plugin-sdk-go/plugin"
55

6-
"github.com/sqlc-dev/sqlc-go/pattern"
6+
"github.com/sqlc-dev/plugin-sdk-go/pattern"
77
)
88

99
func DataType(n *pb.Identifier) string {

0 commit comments

Comments
 (0)