Delete of old event data

This commit is contained in:
Dominik Werder
2024-07-09 14:30:43 +02:00
parent 54008718eb
commit 2c856f5c1f
33 changed files with 278 additions and 13 deletions

View File

@@ -2,6 +2,7 @@ use err::thiserror;
use err::ThisError;
#[derive(Debug, ThisError)]
#[cstm(name = "Postgres")]
pub enum Error {
Postgres(#[from] tokio_postgres::Error),
}

View File

@@ -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,

View File

@@ -9,6 +9,7 @@ use log::*;
use netpod::Database;
#[derive(Debug, ThisError)]
#[cstm(name = "PgPool")]
pub enum Error {
Postgres(#[from] tokio_postgres::Error),
EndOfPool,

View File

@@ -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),

View File

@@ -43,6 +43,7 @@ macro_rules! trace3 {
}
#[derive(Debug, ThisError)]
#[cstm(name = "PgSeries")]
pub enum Error {
Postgres(#[from] tokio_postgres::Error),
CreateSeriesFail,

View File

@@ -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,

View File

@@ -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),