-
I see sea-query has two common functions throughout traits: What is the purpose of having both of these? I see that the source code for it is almost completely identical if I'm not mistaken. Are both these functions necessary? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
|
Beta Was this translation helpful? Give feedback.
build
is static dispatch, whilebuild_any
is dynamic dispatch. So if the user only ever uses one database variant, they'd simply callbuild
.The
any
is only useful for this case where theQueryBuilderBackend
can be swapped runtime.But even SeaORM uses a enum and match statement, so I guess 'in the wild usage' is rare.