Thanks to visit codestin.com
Credit goes to github.com

Skip to content

📝 Update example source files for SQL databases with SQLAlchemy#9508

Merged
tiangolo merged 2 commits into
fastapi:masterfrom
s-mustafa:master
Jan 9, 2024
Merged

📝 Update example source files for SQL databases with SQLAlchemy#9508
tiangolo merged 2 commits into
fastapi:masterfrom
s-mustafa:master

Conversation

@s-mustafa

Copy link
Copy Markdown
Contributor

Adding a secondary index to a primary key is not necessary.

@s-mustafa s-mustafa changed the title Update docs_src to remove useless index 📝 Update docs_src to remove useless index May 9, 2023
@github-actions

github-actions Bot commented May 9, 2023

Copy link
Copy Markdown
Contributor

📝 Docs preview for commit dba9733 at: https://645a09454c03c83c4b2f2175--fastapi.netlify.app

@Ryandaydev Ryandaydev left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This change makes intuitive sense, and I verified SQLAlchemy doco does not include the index=true for its examples of defining primary keys.

Tests also pass.

@tiangolo

Copy link
Copy Markdown
Member

📝 Docs preview for commit 077a31f at: https://64b6f023ad95e206b42d3dc0--fastapi.netlify.app

@tiangolo tiangolo added the docs Documentation about how to use FastAPI label Oct 2, 2023
@tiangolo tiangolo changed the title 📝 Update docs_src to remove useless index 📝 Update example source files for SQL databases with SQLAlchemy Jan 9, 2024
@tiangolo

tiangolo commented Jan 9, 2024

Copy link
Copy Markdown
Member

Thank you! ☕ 🍰

@tiangolo tiangolo merged commit 4491ea6 into fastapi:master Jan 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

docs Documentation about how to use FastAPI

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants