1
0
mirror of https://git.ngram.ca/OpenJam/rc-servers synced 2026-08-23 23:08:52 +00:00

Add garage add, select, and re-order operations for #14

This commit is contained in:
NGnius (Graham)
2025-05-10 13:19:35 -04:00
parent e05649f09d
commit 221a5d5ca9
15 changed files with 420 additions and 34 deletions

View File

@@ -4,3 +4,15 @@ use sea_orm::FromQueryResult;
pub struct Id {
pub id: u32,
}
#[derive(FromQueryResult)]
pub struct SingleColumn<T: sea_orm::TryGetable> {
pub column: T,
}
impl <T: sea_orm::TryGetable> std::ops::Deref for SingleColumn<T> {
type Target = T;
fn deref(&self) -> &Self::Target {
&self.column
}
}