Cannot add Selectable
due to table not being in plural.
#3630
-
I am currently dabbling with #[derive(Queryable)]
pub struct SelfRole {
pub id: i64,
pub style: i32,
pub emoji: Option<String>,
} Alright, so inserting works just fine but following the Getting Started I cannot actually accomplish the Upon looking for an answer I stumbled upon the
By changing manually the schema to become |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
I'm not sure what are you referring to here. Did you try to add
That's the default behavior. You can change it as described in the documentation by adding a |
Beta Was this translation helpful? Give feedback.
-
I am having this issue too with relations. If my tables names are singular, even if the table name is specified, the belonging_to() function doesn't work. |
Beta Was this translation helpful? Give feedback.
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)