Want to use Box for bind
? But Type<DB>
is not object safe. Here's the solution, use enum
#2884
kingwingfly
started this conversation in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I just want to post a new feature request, however, I found a solution while writing and the feature request is wrong, so I post it here.
I'm trying to define a function, returning
Values
which is defined as follows:So I can define a trait
Field
having avalues
method returningValues
which can be used to bind on aQuery
.However,
Type<DB: Database>
is not Object safe.Write until now, I realized that I should use
enum
to wrap the values I want to insert and match it when bind. But for learning, I post it here, and maybe someone else could refer to this.Beta Was this translation helpful? Give feedback.
All reactions