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
{{ message }}
This repository was archived by the owner on May 3, 2021. It is now read-only.
error[E0277]: the trait bound `diesel::query_builder::SelectStatement<diesel_dynamic_schema::table::Table<T>>: diesel::query_dsl::boxed_dsl::BoxedDsl<'_, _>` is not satisfied
--> src/db.rs:407:23
|
407 | let query = table.into_boxed();
| ^^^^^^^^^^ the trait `diesel::query_dsl::boxed_dsl::BoxedDsl<'_, _>` is not implemented for `diesel::query_builder::SelectStatement<diesel_dynamic_schema::table::Table<T>>`
|
= help: the following implementations were found:
<diesel::query_builder::SelectStatement<F, diesel::query_builder::select_clause::DefaultSelectClause, D, W, O, L, Of, G> as diesel::query_dsl::boxed_dsl::BoxedDsl<'a, DB>>
<diesel::query_builder::SelectStatement<F, diesel::query_builder::select_clause::SelectClause<S>, D, W, O, L, Of, G> as diesel::query_dsl::boxed_dsl::BoxedDsl<'a, DB>>
= note: required because of the requirements on the impl of `diesel::query_dsl::boxed_dsl::BoxedDsl<'_, _>` for `diesel_dynamic_schema::table::Table<T>`
It seems that into_boxed() is not implemented for this case. Is there a way to do this properly?
The text was updated successfully, but these errors were encountered:
This might be related to using a Dynamic Select Clause. I tried to implement BoxedDsl myself, but it seems that some types are internal to Diesel, so I could not do it.
If I get some pointers I can implement it and create a pull request :)
Hi,
I'm trying to add dynamic ordering and filtering to a query, but I'm facing some issues. I'm trying this:
But I'm getting this error:
It seems that
into_boxed()
is not implemented for this case. Is there a way to do this properly?The text was updated successfully, but these errors were encountered: