You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

17 lines
415 B
Rust

pub use joinrs_proc::query_parsed;
pub use anyhow;
mod err {
use thiserror::Error;
#[derive(Error, Debug)]
pub enum QueryError {
#[error("Query returned no rows")]
RowNotFound,
#[error("Expected column {0} to have a value, but it was null")]
NullColumn(String),
#[error("Query returned too many rows, expected 1 but got {0}")]
TooManyRows(u32)
}
}