8000 build: Upgrade to github.com/sqlc-dev/plugin-go-sdk@v1.23.0 (#33) · sqlc-dev/sqlc-gen-python@b13c0dd · GitHub
[go: up one dir, main page]

Skip to content

Commit b13c0dd

Browse files
authored
build: Upgrade to github.com/sqlc-dev/plugin-go-sdk@v1.23.0 (#33)
1 parent 605a8cc commit b13c0dd

File tree

13 files changed

+17
-17
lines changed
  • plugin
  • 13 files changed

    +17
    -17
    lines changed

    go.mod

    Lines changed: 1 addition & 1 deletion
    Original file line numberDiff line numberDiff line change
    @@ -5,7 +5,7 @@ go 1.19
    55
    require (
    66
    github.com/google/go-cmp v0.6.0
    77
    github.com/jinzhu/inflection v1.0.0
    8-
    github.com/sqlc-dev/sqlc-go v1.22.1-0.20231102170509-ee94c710d92e
    8+
    github.com/sqlc-dev/plugin-sdk-go v1.23.0
    99
    google.golang.org/protobuf v1.31.0
    1010
    )
    1111

    go.sum

    Lines changed: 2 additions & 2 deletions
    Original file line numberDiff line numberDiff line change
    @@ -6,8 +6,8 @@ github.com/google/go-cmp v0.6.0 h1:ofyhxvXcZhMsU5ulbFiLKl/XBFqE1GSq7atu8tAmTRI=
    66
    github.com/google/go-cmp v0.6.0/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY=
    77
    github.com/jinzhu/inflection v1.0.0 h1:K317FqzuhWc8YvSVlFMCCUb36O/S9MCKRDI7QkRKD/E=
    88
    github.com/jinzhu/inflection v1.0.0/go.mod h1:h+uFLlag+Qp1Va5pdKtLDYj+kHp5pxUVkryuEj+Srlc=
    9-
    github.com/sqlc-dev/sqlc-go v1.22.1-0.20231102170509-ee94c710d92e h1:fgvOWVSJLVvl1ETExPEw2okhTj2kbxvAQ5ECLrAtWbQ=
    10-
    github.com/sqlc-dev/sqlc-go v1.22.1-0.20231102170509-ee94c710d92e/go.mod h1:SXs+GYtPBUfDJQWSOvcJesiAwj4HNfigK7EwzwpHNPk=
    9+
    github.com/sqlc-dev/plugin-sdk-go v1.23.0 h1:iSeJhnXPlbDXlbzUEebw/DxsGzE9rdDJArl8Hvt0RMM=
    10+
    github.com/sqlc-dev/plugin-sdk-go v1.23.0/go.mod h1:I1r4THOfyETD+LI2gogN2LX8wCjwUZrgy/NU4In3llA=
    1111
    golang.org/x/net v0.14.0 h1:BONx9s002vGdD9umnlX1Po8vOZmrgH34qlHcD1MfK14=
    1212
    golang.org/x/net v0.14.0/go.mod h1:PpSgVXXLK0OxS0F31C1/tv6XNguvCrnXIDrFMspZIUI=
    1313
    golang.org/x/sys v0.11.0 h1:eG7RXZHdqOJ1i+0lgLgCpSXAp6M3LYlAo6osgSi0xOM=

    internal/endtoend/testdata/emit_pydantic_models/sqlc.yaml

    Lines changed: 1 addition & 1 deletion
    Original file line numberDiff line numberDiff line change
    @@ -3,7 +3,7 @@ plugins:
    33
    - name: py
    44
    wasm:
    55
    url: file://../../../../bin/sqlc-gen-python.wasm
    6-
    sha256: "c8c759e80b7d66c728cf9d37674f8f5c9cc33774afa789dbceee0e3446773458"
    6+
    sha256: "a6c5d174c407007c3717eea36ff0882744346e6ba991f92f71d6ab2895204c0e"
    77
    sql:
    88
    - schema: schema.sql
    99
    queries: query.sql

    internal/endtoend/testdata/exec_result/sqlc.yaml

    Lines changed: 1 addition & 1 deletion
    Original file line numberDiff line numberDiff line change
    @@ -3,7 +3,7 @@ plugins:
    33
    - name: py
    44
    wasm:
    55
    url: file://../../../../bin/sqlc-gen-python.wasm
    6-
    sha256: "c8c759e80b7d66c728cf9d37674f8f5c9cc33774afa789dbceee0e3446773458"
    6+
    sha256: "a6c5d174c407007c3717eea36ff0882744346e6ba991f92f71d6ab2895204c0e"
    77
    sql:
    88
    - schema: schema.sql
    99
    queries: query.sql

    internal/endtoend/testdata/exec_rows/sqlc.yaml

    Lines changed: 1 addition & 1 deletion
    Original file line numberDiff line numberDiff line change
    @@ -3,7 +3,7 @@ plugins:
    33
    - name: py
    44
    wasm:
    55
    url: file://../../../../bin/sqlc-gen-python.wasm
    6-
    sha256: "c8c759e80b7d66c728cf9d37674f8f5c9cc33774afa789dbceee0e3446773458"
    6+
    sha256: "a6c5d174c407007c3717eea36ff0882744346e6ba991f92f71d6ab2895204c0e"
    77
    sql:
    88
    - schema: schema.sql
    99
    queries: query.sql

    internal/endtoend/testdata/inflection_exclude_table_names/sqlc.yaml

    Lines changed: 1 addition & 1 deletion
    Original file line numberDiff line numberDiff line change
    @@ -3,7 +3,7 @@ plugins:
    33
    - name: py
    44
    wasm:
    55
    url: file://../../../../bin/sqlc-gen-python.wasm
    6-
    sha256: "c8c759e80b7d66c728cf9d37674f8f5c9cc33774afa789dbceee0e3446773458"
    6+
    sha256: "a6c5d174c407007c3717eea36ff0882744346e6ba991f92f71d6ab2895204c0e"
    77
    sql:
    88
    - schema: schema.sql
    99
    queries: query.sql

    internal/endtoend/testdata/query_parameter_limit_two/sqlc.yaml

    Lines changed: 1 addition & 1 deletion
    Original file line numberDiff line numberDiff line change
    @@ -3,7 +3,7 @@ plugins:
    33
    - name: py
    44
    wasm:
    55
    url: file://../../../../bin/sqlc-gen-python.wasm
    6-
    sha256: "c8c759e80b7d66c728cf9d37674f8f5c9cc33774afa789dbceee0e3446773458"
    6+
    sha256: "a6c5d174c407007c3717eea36ff0882744346e6ba991f92f71d6ab2895204c0e"
    77
    sql:
    88
    - schema: schema.sql
    99
    queries: query.sql

    internal/endtoend/testdata/query_parameter_limit_undefined/sqlc.yaml

    Lines changed: 1 addition & 1 deletion
    Original file line numberDiff line numberDiff line change
    @@ -3,7 +3,7 @@ plugins:
    33
    - name: py
    44
    wasm:
    55
    url: file://../../../../bin/sqlc-gen-python.wasm
    6-
    sha256: "c8c759e80b7d66c728cf9d37674f8f5c9cc33774afa789dbceee0e3446773458"
    6+
    sha256: "a6c5d174c407007c3717eea36ff0882744346e6ba991f92f71d6ab2895204c0e"
    77
    sql:
    88
    - schema: schema.sql
    99
    queries: query.sql

    internal/endtoend/testdata/query_parameter_limit_zero/sqlc.yaml

    Lines changed: 1 addition & 1 deletion
    Original file line numberDiff line numberDiff line change
    @@ -3,7 +3,7 @@ plugins:
    33
    - name: py
    44
    wasm:
    55
    url: file://../../../../bin/sqlc-gen-python.wasm
    6-
    sha256: "c8c759e80b7d66c728cf9d37674f8f5c9cc33774afa789dbceee0e3446773458"
    6+
    sha256: "a6c5d174c407007c3717eea36ff0882744346e6ba991f92f71d6ab2895204c0e"
    77
    sql:
    88
    - schema: schema.sql
    99
    queries: query.sql

    internal/endtoend/testdata/query_parameter_no_limit/sqlc.yaml

    Lines changed: 1 addition & 1 deletion
    Original file line numberDiff line numberDiff line change
    @@ -3,7 +3,7 @@ plugins:
    33
    - name: py
    44
    wasm:
    55
    url: file://../../../../bin/sqlc-gen-python.wasm
    6-
    sha256: "c8c759e80b7d66c728cf9d37674f8f5c9cc33774afa789dbceee0e3446773458"
    6+
    sha256: "a6c5d174c407007c3717eea36ff0882744346e6ba991f92f71d6ab2895204c0e"
    77
    sql:
    88
    - schema: schema.sql
    99
    queries: query.sql

    internal/gen.go

    Lines changed: 3 additions & 3 deletions
    Original file line numberDiff line numberDiff line change
    @@ -10,9 +10,9 @@ import (
    1010
    "sort"
    1111
    "strings"
    1212

    13-
    "github.com/sqlc-dev/sqlc-go/metadata"
    14-
    "github.com/sqlc-dev/sqlc-go/plugin"
    15-
    "github.com/sqlc-dev/sqlc-go/sdk"
    13+
    "github.com/sqlc-dev/plugin-sdk-go/metadata"
    14+
    "github.com/sqlc-dev/plugin-sdk-go/plugin"
    15+
    "github.com/sqlc-dev/plugin-sdk-go/sdk"
    1616

    1717
    pyast "github.com/sqlc-dev/sqlc-gen-python/internal/ast"
    1818
    "github.com/sqlc-dev/sqlc-gen-python/internal/inflection"

    internal/postgresql_type.go

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

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

    1010
    func postgresType(req *plugin.GenerateRequest, col *plugin.Column) string {

    plugin/main.go

    Lines changed: 1 addition & 1 deletion
    Original file line numberDiff line numberDiff line change
    @@ -1,7 +1,7 @@
    11
    package main
    22

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

    66
    python "github.com/sqlc-dev/sqlc-gen-python/internal"
    77
    )

    0 commit comments

    Comments
     (0)
    0