Skip to content

Refactor: Model relations refactored into small generics reused heavily instead of repeating the same snippet for each Prop - #13

Merged
VoidClancy merged 2 commits into
masterfrom
codegen
Jul 4, 2026
Merged

Refactor: Model relations refactored into small generics reused heavily instead of repeating the same snippet for each Prop#13
VoidClancy merged 2 commits into
masterfrom
codegen

Conversation

@VoidClancy

Copy link
Copy Markdown
Owner

1- create relations_runtime.go, which houses the genric functions directKey(), optionalKey(), setOne(), appendMany(), scanInto(), and colSpec struct with computeCols() to be used in the load{MODEL}Relation() and avoid a verbose client

…ly instead of repeating the same snippet for each Prop

1- create relations_runtime.go, which houses the genric functions directKey(), optionalKey(), setOne(), appendMany(), scanInto(), and colSpec struct with computeCols() to be used in the load{MODEL}Relation() and avoid a verbose client
@VoidClancy
VoidClancy merged commit 05a1804 into master Jul 4, 2026
3 checks passed
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