sqlmodel icon indicating copy to clipboard operation
sqlmodel copied to clipboard

📝 Document `.in_()` method

Open masylum opened this issue 2 years ago • 4 comments

Hi there! I'm pretty new to this project and I think this is the best time to contribute documentation. The tutorial is amazing, but missing a formal reference makes finding some advanced features a bit difficult. For instance, since I'm still not 100% sure how the integration with SQLAlchemy works, I had to search how to do in_. I found this issue here https://github.com/tiangolo/sqlmodel/issues/353 which explains perfectly how to do it.

I've went ahead and added the documentation on the where tutorial. My only gotcha here is that the numeric examples make it hard to add new examples in between. I'm not sure renaming all the tutorials is the best approach. This is a very similar problem as creating taxonomies in design systems, this is why people name things in hundreds (100, 200, 300...), so if a new thing needs to be added in between it can be added without having to rename things afterwards. In my case, I've just added a 5 after the 6 to denote "this tutorial goes between the 6th and the 7th".

I hope this is useful!

masylum avatar Jul 13 '23 08:07 masylum

📝 Docs preview for commit dd67e6acf0a5f0ee1502ca20c890facbb4b0e505 at: https://a45a5495.sqlmodel.pages.dev

Modified Pages

  • https://a45a5495.sqlmodel.pages.dev/tutorial/where/ - (before)

github-actions[bot] avatar Aug 22 '25 19:08 github-actions[bot]

📝 Docs preview for commit 41eeeb6187951fd6df4312fdd5c13b300e88073a at: https://84c826d2.sqlmodel.pages.dev

Modified Pages

  • https://84c826d2.sqlmodel.pages.dev/tutorial/where/ - (before)

github-actions[bot] avatar Aug 22 '25 20:08 github-actions[bot]

📝 Docs preview for commit fe123ba42eedb6b5215b5b305a973eeb9f1f2038 at: https://3c1791fc.sqlmodel.pages.dev

Modified Pages

  • https://3c1791fc.sqlmodel.pages.dev/tutorial/where/ - (before)

github-actions[bot] avatar Aug 22 '25 20:08 github-actions[bot]

📝 Docs preview for commit bd737cc1889c3fcbdbc397a0f7989ec42d827d30 at: https://8cafcc3f.sqlmodel.pages.dev

Modified Pages

  • https://8cafcc3f.sqlmodel.pages.dev/tutorial/where/ - (before)

github-actions[bot] avatar Aug 22 '25 20:08 github-actions[bot]