Skip to content

Cannot add Selectable due to table not being in plural. #3630

Answered by weiznich
wizardlink asked this question in Q&A
Discussion options

You must be logged in to vote

I can call filter but it doesn't chains into limit and I don't see anything I missed in terms of derivatives/traits.

I'm not sure what are you referring to here. Did you try to add .limit() and it fails to compile with rustc? In that case it would be helpful to get the compiler error and the relevant code. Or did it not show up in the code completions in your IDE? In that case: The method exists, but rust-analyzer is not able to find it for whatever reason (rust-lang/rust-analyzer#14607)

Upon looking for an answer I stumbled upon the Selectable trait, however upon using it, whatever I may name my struct, it always appends it with s (thus assuming a plural schema). This leads to the error:

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
2 replies
@wizardlink
Comment options

@weiznich
Comment options

Answer selected by wizardlink
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants