rdb_pagination_core/
order_by_options.rs

1
2
3
4
5
6
7
8
9
10
11
12
use crate::{SqlJoin, SqlOrderByComponent};

/// Options for the `ORDER BY` clause.
pub trait OrderByOptions: Default {
    /// Create objects for generating a SQL statement.
    #[inline]
    fn to_sql(&self) -> (Vec<SqlJoin>, Vec<SqlOrderByComponent>) {
        (Vec::new(), Vec::new())
    }
}

impl OrderByOptions for () {}