Skip to content

request: switch all request types to value receivers and value returns#553

Open
bigbes wants to merge 1 commit intomasterfrom
bigbes/gh-no-request-value-receivers
Open

request: switch all request types to value receivers and value returns#553
bigbes wants to merge 1 commit intomasterfrom
bigbes/gh-no-request-value-receivers

Conversation

@bigbes
Copy link
Copy Markdown
Collaborator

@bigbes bigbes commented Mar 25, 2026

All New*Request()/Make*Request() constructors now return values instead of pointers. All methods on request types use value receivers and return values, enabling immutable builder-style chaining.

Removed intermediate spaceRequest, spaceIndexRequest types from the tarantool package and spaceRequest from the crud package — space and index fields are inlined directly into each request struct.

Converted all constructors to composite literal style.

Applied the same pattern to arrow/ and settings/ packages.

In the box/ subpackage, request types no longer embed tarantool.CallRequest. They store it as a private field via baseCallRequest and implement their own Context() method returning the wrapper type.

@bigbes bigbes requested a review from oleg-jukovec March 25, 2026 10:44
@bigbes bigbes force-pushed the bigbes/gh-no-request-value-receivers branch from 1b92035 to 1e3c768 Compare March 25, 2026 10:46
All New*Request()/Make*Request() constructors now return values instead
of pointers. All methods on request types use value receivers and return
values, enabling immutable builder-style chaining.

Removed intermediate spaceRequest, spaceIndexRequest types from the
tarantool package and spaceRequest from the crud package — space and
index fields are inlined directly into each request struct.

Converted all constructors to composite literal style.

Applied the same pattern to arrow/ and settings/ packages.

In the box/ subpackage, request types no longer embed
tarantool.CallRequest. They store it as a private field via
baseCallRequest and implement their own Context() method returning the
wrapper type.
@bigbes bigbes force-pushed the bigbes/gh-no-request-value-receivers branch from 1e3c768 to 0581fc0 Compare March 25, 2026 11:24
@bigbes bigbes requested a review from patapenka-alexey March 25, 2026 12:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant