You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
And to implement it for all operations. The execute will accept a client instance and use it to make queries and submissions. Anyway, the design of the trait is discussable.
UPDATE: Let's keep Operation impls separately in different modules/files.
The text was updated successfully, but these errors were encountered:
Currently, all operations map to a prepared piece of code using the
match
construction. It's not ergonomic enough and not able to use queries.My suggestion is to introduce the
Operation
trait inspired by this discussion:And to implement it for all operations. The
execute
will accept a client instance and use it to make queries and submissions. Anyway, the design of the trait is discussable.UPDATE: Let's keep
Operation
impls separately in different modules/files.The text was updated successfully, but these errors were encountered: