Comments (3)
Named parameters are a good work around for this issue.
const deleteToken = `-- name: DeleteToken :exec
DELETE FROM chef_authn_tokens cat
WHERE cat.id=$1
AND projects_match(cat.project_ids, @project_ids::TEXT[])
`
type DeleteTokenParams struct {
ID string
ProjectIds []string
}
from sqlc.
@srenatus Since array types are now supported, I created a new issue to track generating better names for your example query.
from sqlc.
One tiny step at a time, I suppose: #43
from sqlc.
Related Issues (20)
- Incorrect type generated for `SMALLINT` HOT 3
- MySQL table and column names should not be normalized to lowercase
- Renaming doesn't apply to JSON tags
- Escaping natural language w/ mysql?
- make regen is broken
- Returning unsigned integers from catalog functions
- sqlc generate should emit a warning when using an unknown sql_package
- plugin.GenerateRequest is internal HOT 1
- Exclude newline sql comments (within query body) from the generated go function comments
- Args in mysql ORDER BY not respected
- Generated `Params` don't allow nullable values when `COALESCE` is used HOT 1
- go/sqlite: integer primary keys are inferred as nullable when declared separately
- go/sqlite: SUM of INTEGER field has inferred type NullFloat64
- Cannot embed empty row into struct HOT 1
- Proposal: Add option to emit `//go:generate` annotation HOT 2
- CAST() produces correct go type for postgres but not mysql
- sqlc.embed handle CTE
- MySQL `JSON_TABLE` not supported HOT 2
- SQLite UPDATE FROM statements not supported
- SQLite: error parsing schema with `UNIQUE`
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.