Rework support for vec string

This commit is contained in:
Dominik Werder
2024-12-11 16:57:20 +01:00
parent c52de68418
commit 53dc4b7361
5 changed files with 213 additions and 318 deletions

View File

@@ -20,6 +20,7 @@ pin-project = "1"
async-channel = "1.9.0"
chrono = "0.4.38"
regex = "1.10.4"
autoerr = "0.0.3"
daqbuf-err = { path = "../../../daqbuf-err" }
netpod = { path = "../../../daqbuf-netpod", package = "daqbuf-netpod" }
parse = { path = "../../../daqbuf-parse", package = "daqbuf-parse" }

View File

@@ -1,16 +1,14 @@
use daqbuf_err as err;
use err::thiserror;
use err::ThisError;
use netpod::ScalarType;
use netpod::Shape;
use tokio_postgres::Client;
#[derive(Debug, ThisError)]
#[cstm(name = "ChannelInfo")]
pub enum Error {
Pg(#[from] crate::pg::Error),
BadValue,
}
autoerr::create_error_v1!(
name(Error, "ChannelInfo"),
enum variants {
Pg(#[from] crate::pg::Error),
BadValue,
},
);
pub struct ChannelInfo {
pub series: u64,