| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
|
Thanks for looking at this @svlandeg . I've fixed the failing pydantic error and marked this as ready for review. |
Sorry, something went wrong.
|
This would be great to have – I just ran into this error! I think #1342 solves the same problem using UpdateBase, which covers update operations as well as delete ones. |
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
The sqlmodel docs explain how to delete a single row from a table.
It's also useful to be able to delete multiple rows (or even all rows) at the same time. See https://stackoverflow.com/questions/76648956/how-to-delete-all-rows-matching-a-condition-using-sqlmodel for example.
session.exec(delete(Table)) works fine, but triggers a type warning:
Adding an additional overload to Session.exec() allows this syntax to be used.