move EntityGatewayTransaction to end of file
This commit is contained in:
		
							parent
							
								
									a27956cbdf
								
							
						
					
					
						commit
						e5167ce5e0
					
				@ -16,17 +16,6 @@ pub enum GatewayError {
 | 
			
		||||
    PgError(#[from] sqlx::Error)
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
#[async_trait::async_trait]
 | 
			
		||||
pub trait EntityGatewayTransaction: Send + Sync {
 | 
			
		||||
    fn gateway<'a>(&'a mut self) -> &'a mut dyn EntityGateway {
 | 
			
		||||
        unimplemented!()
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    async fn commit(self: Box<Self>) -> Result<(), GatewayError> {
 | 
			
		||||
        unimplemented!()
 | 
			
		||||
    }
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
#[async_trait::async_trait]
 | 
			
		||||
pub trait EntityGateway: Send + Sync {
 | 
			
		||||
@ -155,3 +144,15 @@ pub trait EntityGateway: Send + Sync {
 | 
			
		||||
        unimplemented!();
 | 
			
		||||
    }
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
#[async_trait::async_trait]
 | 
			
		||||
pub trait EntityGatewayTransaction: Send + Sync {
 | 
			
		||||
    fn gateway<'a>(&'a mut self) -> &'a mut dyn EntityGateway {
 | 
			
		||||
        unimplemented!()
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    async fn commit(self: Box<Self>) -> Result<(), GatewayError> {
 | 
			
		||||
        unimplemented!()
 | 
			
		||||
    }
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user