Repository navigation
Add typed JSON parameter input for d1 query and raw #674
Replies: 3 comments
|
Hey, i would like to work on this issue. Thanks! |
|
We need to discuss as a team how this should be supported. I am not sure that postfixing param names with |
|
I agree with @petebacondarwin that introducing a Why avoiding synthetic
|
Uh oh!
There was an error while loading. Please reload this page.
The
--paramsstring-array surface cannot express numeric or SQL NULL parameters. Callers must assemble a raw JSON request body.Version: cf 1.0.0-rc.1; Node 26.12.0; macOS arm64.
Reproduce against a D1 database you can query:
Flags return
{"n":"text","nil":"text"}. Compare:The JSON body preserves
realandnull.Requested: a typed JSON parameter option, such as
--params-json '[42.5,null]', for query/raw commands. Preserve existing string parameter behavior, including the literal string"null". This is an input capability request; the raw-body workaround works.All reactions