Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Auto populate join fields #292

Merged
merged 10 commits into from Jun 26, 2022
Merged

Auto populate join fields #292

merged 10 commits into from Jun 26, 2022

Conversation

Fs02
Copy link
Member

@Fs02 Fs02 commented Jun 19, 2022

  • Extract Metadata methods from Document and Association struct to DocumentMeta and AssociationMeta
  • Added Populate callback on query builder
  • The callback is now used to generate Join fields
  • Later this will be used to populate fields to be scanned (Add support for scanning joined assoc #290)
  • Added join.Assoc and join.AssocWith api

@codecov
Copy link

codecov bot commented Jun 19, 2022

Codecov Report

Merging #292 (1709992) into master (f5e5856) will not change coverage.
The diff coverage is 100.00%.

@@            Coverage Diff            @@
##            master      #292   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files           33        35    +2     
  Lines         2802      2857   +55     
=========================================
+ Hits          2802      2857   +55     
Impacted Files Coverage Δ
association.go 100.00% <100.00%> (ø)
association_meta.go 100.00% <100.00%> (ø)
collection.go 100.00% <100.00%> (ø)
document.go 100.00% <100.00%> (ø)
document_meta.go 100.00% <100.00%> (ø)
join_query.go 100.00% <100.00%> (ø)
query.go 100.00% <100.00%> (ø)
repository.go 100.00% <100.00%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update f5e5856...1709992. Read the comment docs.

join_query.go Outdated Show resolved Hide resolved
@Fs02 Fs02 merged commit 7edbcb0 into master Jun 26, 2022
@Fs02 Fs02 deleted the auto-populate-join-fields branch June 26, 2022 03:55
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.

None yet

1 participant