Skip to content

Add treat-as-id annotation and helper to fetch value#14

Closed
majst01 wants to merge 11 commits intomainfrom
get-primary-key
Closed

Add treat-as-id annotation and helper to fetch value#14
majst01 wants to merge 11 commits intomainfrom
get-primary-key

Conversation

@majst01
Copy link
Contributor

@majst01 majst01 commented Jun 20, 2025

Description

With this PR we add a validation that every UpdateRequest Message must have either a id field, or one single field which is annotated with treat_as_id = true. If this is the case, the primary key value of such a message can be get by calling id.Get(<updateRequest>).

@majst01 majst01 self-assigned this Jun 25, 2025
@majst01
Copy link
Contributor Author

majst01 commented Sep 17, 2025

Closing as discussed.

@majst01 majst01 closed this Sep 17, 2025
@majst01 majst01 deleted the get-primary-key branch September 17, 2025 11:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

2 participants