This commit is contained in:
LinlyBoi
2022-12-31 12:44:04 +02:00
parent 8ebea56925
commit 8859ab7058

View File

@@ -1,16 +0,0 @@
pub mod admin_data;
pub mod driver_data;
pub mod radar_data;
pub mod ticket_data;
pub mod vehicle_data;
use async_trait::async_trait;
use sqlx::PgPool;
//Nuke happened here but we got POOLS :DDDDDD
#[async_trait]
pub trait SqlStruct {
async fn add(&self, pool: &PgPool);
async fn delete(&self, pool: &PgPool);
async fn listall(&self, pool: &PgPool);
async fn join(&self, join_target: impl SqlStruct, pool: &PgPool);
}