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

allow index into ForeignKey #989

Closed
wants to merge 5 commits into from

Conversation

cmflynn
Copy link

@cmflynn cmflynn commented Jan 19, 2023

No description provided.

@codecov-commenter
Copy link

codecov-commenter commented Jan 20, 2023

Codecov Report

Merging #989 (5e89c1e) into master (fd77f02) will not change coverage.
The diff coverage is 100.00%.

📣 This organization is not using Codecov’s GitHub App Integration. We recommend you install it so Codecov can continue to function properly for your repositories. Learn more

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff            @@
##            master      #989   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files          200       200           
  Lines        16532     16556   +24     
=========================================
+ Hits         16532     16556   +24     
Impacted Files Coverage Δ
ormar/fields/foreign_key.py 100.00% <100.00%> (ø)
...sts/test_model_definition/test_model_definition.py 100.00% <100.00%> (ø)

@collerek
Copy link
Owner

Thanks, seems right to include it! :)

Can you please add test (check underlying sqlalchemy table structure if it has the index set / not set based on this setting - you can check Model.Meta.table for columns settings and table indexes) and docs for it (in fk section)

@cmflynn
Copy link
Author

cmflynn commented Feb 8, 2023

Thanks, seems right to include it! :)

Can you please add test (check underlying sqlalchemy table structure if it has the index set / not set based on this setting - you can check Model.Meta.table for columns settings and table indexes) and docs for it (in fk section)

@collerek I looked through the docs and wasn't sure exactly where/what we should add this for argument. The foreign key section does not actually document any of the kwargs that are curried from ormars fk to sqlalchemys fks. I suppose we could start there? happy to do that, or if you have a more specific suggestion of where this documentation should go I'm happy to add it.

@collerek
Copy link
Owner

That would be awesome!
Yep the fk section looks like a good candidate for this.

@collerek
Copy link
Owner

Merged in #1276 as I don't have perms on your fork, thanks!

@collerek collerek closed this Mar 23, 2024
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.

3 participants