sqlx icon indicating copy to clipboard operation
sqlx copied to clipboard

Patched out forcing references in query arguments

Open Buzzec opened this issue 8 months ago • 0 comments

Is this a breaking change?

This is a breaking change, it makes arguments no longer forced to be references. Users will have to manually reference their arguments.

Reasoning

This allows returning owned values as part of outputs, such as a function that outputs a stream from a fetch call can have values that are passed to that function as args.

We are already using this patch in our large codebase as it allows for optimized returns for streams.

Buzzec avatar Jun 13 '25 20:06 Buzzec