Code Monkey home page Code Monkey logo

Comments (6)

kyleconroy avatar kyleconroy commented on August 24, 2024 2

The plugin package won't be moved in this repository, but it is exported in the https://github.com/sqlc-dev/plugin-sdk-go package, which should be used when building sqlc plugins in Go.

That package is a bit out of date, but I don't think the plugin interface has changed in the last few minor versions. I'll make sure to update it for the next release.

from sqlc.

delaneyj avatar delaneyj commented on August 24, 2024 1

I'm running into the same issue. I want to make a plugin so I currently have to fork sqlc when I just need the plugin.GenerateRequest|Response

from sqlc.

delaneyj avatar delaneyj commented on August 24, 2024 1

task sqlc -w note this is just part of the taskfile... task --init to make a new file. https://taskfile.dev/usage/ for more details.

from sqlc.

mikeschinkel avatar mikeschinkel commented on August 24, 2024 1

@delaneyj โ€”ย Thanks!

from sqlc.

delaneyj avatar delaneyj commented on August 24, 2024

@mikeschinkel

in the meantime I'm now using a Taskfile.yml to do the automation to use outside of sqlc

  sqlc-pb-update:
    dir: sqlc-gen-zombiezen/pb/plugin
    cmds:
      - wget -Nc -q --show-progress https://raw.githubusercontent.com/sqlc-dev/sqlc/main/internal/plugin/codegen.pb.go
      - wget -Nc -q --show-progress https://raw.githubusercontent.com/sqlc-dev/sqlc/main/internal/plugin/codegen_grpc.pb.go

  sqlc:
    dir: sqlc-gen-zombiezen
    sources:
      - "**/*.go"
      - "**/*.tpl"
    deps:
      - sqlc-pb-update
    cmds:
      - go install

from sqlc.

mikeschinkel avatar mikeschinkel commented on August 24, 2024

@delaneyj โ€” Thanks. How are you running Taskfile.yml?

from sqlc.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.