Store finished work in db

This commit is contained in:
Joscha 2023-08-11 15:16:20 +02:00
parent a9e08505bc
commit 5e0b8e3c8c
9 changed files with 190 additions and 38 deletions

View file

@ -10,7 +10,7 @@ fn is_false(b: &bool) -> bool {
!b
}
#[derive(Clone, Serialize_repr, Deserialize_repr)]
#[derive(Clone, Serialize_repr, Deserialize_repr, sqlx::Type)]
#[repr(i8)]
pub enum Direction {
LessIsBetter = -1,
@ -29,7 +29,7 @@ pub struct Measurement {
pub direction: Option<Direction>,
}
#[derive(Clone, Serialize_repr, Deserialize_repr)]
#[derive(Clone, Serialize_repr, Deserialize_repr, sqlx::Type)]
#[repr(u8)]
pub enum Source {
// Stdin would be fd 0