Mark query builder functions as const function #691
Evian-Zhang
started this conversation in
Ideas
Replies: 1 comment 1 reply
-
The current limitation of const functions in Rust would prevent this. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Motivation
I'm new to this crate. and during my experience of writing ORMs, I think it is wise to mark query builder functions as const functions. In most situations, one query corresponds to one static string, which we can define them in const environments. However, current implementation of query builders does not contain a
const
mark, while I didn't find something prevents doing so.Proposed Solutions
Mark query builder functions as const function.
Beta Was this translation helpful? Give feedback.
All reactions