cartel-pg 0.27.0

Async PostgreSQL driver for the dope runtime
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
use crate::dsl::scope::never::Never;

pub mod join;
pub mod ops;

pub struct Filter<T>(pub(super) Never<T>);
pub struct Cte<T>(pub(super) Never<T>);
pub struct Select<T>(pub(super) Never<T>);
pub struct Stream<T>(Never<T>);

impl<T> Cte<T> {
    pub fn filter<F>(self, pred: F) -> Filter<T>
    where
        F: FnOnce(T) -> bool,
    {
        self.0.infer(pred)
    }
}