pebble_query 0.1.0

A helper library for SeaOrm to parse execute, and return standard DTOs with query metadata.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
use sea_orm::DbErr;
use thiserror::Error;

#[derive(Error, Debug)]
pub enum PebbleQueryError {
    #[error("Invalid condition: {0}")]
    InvalidConditionOperator(String),
    #[error("Invalid operator: {0}")]
    InvalidOperator(String),
    #[error("Invalid field: {0}")]
    InvalidField(String),
    #[error("Missing value: {0}")]
    MissingValue(String),
    #[error("SeaOrmDbError: {0}")]
    SeaOrmDbError(#[from] DbErr),
}