Comments (6)
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.
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.
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.
@delaneyj โย Thanks!
from sqlc.
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.
@delaneyj โ Thanks. How are you running Taskfile.yml
?
from sqlc.
Related Issues (20)
- Generating with columns that don't exist HOT 3
- Extra argument added to COALESCE in generated SQLite query causes missing argument error HOT 1
- Can't generate Go code when using `CREATE EVENT ..` in MySQL HOT 1
- No error during generation with invalid column name in WHERE clause
- When use `:batchexec`, Generate file containing only the package name HOT 2
- The interface type was generated incorrectly HOT 5
- sqlc generate error parsing configuration files. sqlc.(yaml|yml) or sqlc.json: file does not exist HOT 13
- emoji in queries generate broken queries HOT 2
- Allow queries against pg_locks HOT 1
- # runtime/cgo
- Sqlc Generation Error JSONB
- Error in the documentation for transactions? HOT 1
- Bugs on bulk insert with `:copyfrom` when using same placeholder twice
- bad query param structs generated for columns allowing null HOT 1
- rpc error: code = FailedPrecondition desc = could not find existing database server for engine
- parsing of configuration file fails (sqlc.yaml)
- Non-nullable parameters generated when using overridden type + sqlc.narg + COALESCE HOT 1
- Support for Static SQL Generation with Variable JSONB Query Conditions in SQLC
- Same parameter used multiple times not respected when using PgVector with pgx (Postgres) HOT 4
- No valid nullable type for PgVector
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from sqlc.