Ambiguous find!
macro replaced with more explicit macros
#125
Labels
enhancement
New feature or request
find!
macro replaced with more explicit macros
#125
The result of using the
find!
macro is ambiguous, not indicating under which conditions it will return an Error and silently discarding valuesMy proposal is to follow a combination of SQLAlchemy 1.4-1 and 2.0-style2 Query API, renaming
find!
withfind_first!
, keeping the prefix but appending the explicit method name that implies the return expectation and creating a few new macros for common operations:find_first!
find_one!
find_all!
find_one_or_none!
Footnotes
SQLAlchemy legacy Query API. ↩
SQLAlchemy 2.0-style Query API ↩
The text was updated successfully, but these errors were encountered: