diesel_dynamic_schema/
dummy_expression.rs
1use diesel::expression::{
2 expression_types, is_aggregate, AppearsOnTable, Expression, SelectableExpression, ValidGrouping,
3};
4
5#[doc(hidden)]
6pub struct DummyExpression;
8
9impl DummyExpression {
10 pub(crate) fn new() -> Self {
11 DummyExpression
12 }
13}
14
15impl<QS> SelectableExpression<QS> for DummyExpression {}
16
17impl<QS> AppearsOnTable<QS> for DummyExpression {}
18
19impl Expression for DummyExpression {
20 type SqlType = expression_types::NotSelectable;
21}
22
23impl ValidGrouping<()> for DummyExpression {
24 type IsAggregate = is_aggregate::No;
25}