YES
This commit is contained in:
@@ -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);
|
||||
}
|
||||
Reference in New Issue
Block a user