Delete of old event data
This commit is contained in:
@@ -2,6 +2,7 @@ use err::thiserror;
|
||||
use err::ThisError;
|
||||
|
||||
#[derive(Debug, ThisError)]
|
||||
#[cstm(name = "Postgres")]
|
||||
pub enum Error {
|
||||
Postgres(#[from] tokio_postgres::Error),
|
||||
}
|
||||
|
||||
@@ -5,6 +5,7 @@ use log::*;
|
||||
use std::net::SocketAddrV4;
|
||||
|
||||
#[derive(Debug, ThisError)]
|
||||
#[cstm(name = "PgFindAddr")]
|
||||
pub enum Error {
|
||||
Postgres(#[from] tokio_postgres::Error),
|
||||
IocAddrNotFound,
|
||||
|
||||
@@ -9,6 +9,7 @@ use log::*;
|
||||
use netpod::Database;
|
||||
|
||||
#[derive(Debug, ThisError)]
|
||||
#[cstm(name = "PgPool")]
|
||||
pub enum Error {
|
||||
Postgres(#[from] tokio_postgres::Error),
|
||||
EndOfPool,
|
||||
|
||||
@@ -4,6 +4,7 @@ use err::ThisError;
|
||||
use log::*;
|
||||
|
||||
#[derive(Debug, ThisError)]
|
||||
#[cstm(name = "PgSchema")]
|
||||
pub enum Error {
|
||||
Postgres(#[from] tokio_postgres::Error),
|
||||
LogicError(String),
|
||||
|
||||
@@ -43,6 +43,7 @@ macro_rules! trace3 {
|
||||
}
|
||||
|
||||
#[derive(Debug, ThisError)]
|
||||
#[cstm(name = "PgSeries")]
|
||||
pub enum Error {
|
||||
Postgres(#[from] tokio_postgres::Error),
|
||||
CreateSeriesFail,
|
||||
|
||||
@@ -3,6 +3,7 @@ use err::ThisError;
|
||||
|
||||
// TODO still needed?
|
||||
#[derive(Debug, ThisError)]
|
||||
#[cstm(name = "PgSeriesId")]
|
||||
pub enum Error {
|
||||
Postgres(#[from] tokio_postgres::Error),
|
||||
IocAddrNotFound,
|
||||
|
||||
@@ -16,6 +16,7 @@ impl fmt::Display for TestError {
|
||||
impl std::error::Error for TestError {}
|
||||
|
||||
#[derive(Debug, ThisError)]
|
||||
#[cstm(name = "PgTestErr")]
|
||||
enum Error {
|
||||
Postgres(#[from] tokio_postgres::Error),
|
||||
Dummy(#[from] TestError),
|
||||
|
||||
Reference in New Issue
Block a user