updated dependancies for db-lib so that serde::Serialize works as intended

Also added a macro arm to sql_err which allows for the passing of SqlError Objects through
This commit is contained in:
shockrah
2020-11-17 22:27:28 -08:00
parent 77f6850c52
commit 7c41db0648
4 changed files with 23 additions and 12 deletions

View File

@@ -10,7 +10,6 @@ use crate::{sql_err, no_conn, Response};
use serde::Serialize;
#[allow(dead_code)]
#[derive(Serialize)]
pub struct Channel {
pub id: UBigInt,

View File

@@ -15,6 +15,11 @@ macro_rules! no_conn {
macro_rules! sql_err {
($spec:literal) => {
format!("[ SQL Error ] : {}", $spec)
};
// Using this mostly to pull in sql err types from lib to outside world for logging
($exp:expr) => {
format!("[ SQL Error ] : {}", $exp)
}
}