pub type Pool = Pool<Manager>;
Expand description
Type alias for using deadpool::managed::Pool
with tokio_postgres
.
Aliased Type§
struct Pool { /* private fields */ }
Trait Implementations§
Source§impl CrudOps for Pool
Pool nesnesi için CrudOps trait’inin implementasyonu
impl CrudOps for Pool
Pool nesnesi için CrudOps trait’inin implementasyonu
Source§fn insert<'life0, 'async_trait, T>(
&'life0 self,
entity: T,
) -> Pin<Box<dyn Future<Output = Result<u64, Error>> + Send + 'async_trait>>
fn insert<'life0, 'async_trait, T>( &'life0 self, entity: T, ) -> Pin<Box<dyn Future<Output = Result<u64, Error>> + Send + 'async_trait>>
Veritabanına yeni bir kayıt ekler. Read more
Source§fn update<'life0, 'async_trait, T>(
&'life0 self,
entity: T,
) -> Pin<Box<dyn Future<Output = Result<u64, Error>> + Send + 'async_trait>>where
T: SqlQuery + UpdateParams + Send + Sync + 'async_trait,
Self: 'async_trait,
'life0: 'async_trait,
fn update<'life0, 'async_trait, T>(
&'life0 self,
entity: T,
) -> Pin<Box<dyn Future<Output = Result<u64, Error>> + Send + 'async_trait>>where
T: SqlQuery + UpdateParams + Send + Sync + 'async_trait,
Self: 'async_trait,
'life0: 'async_trait,
Veritabanındaki mevcut bir kaydı günceller. Read more
Source§fn delete<'life0, 'async_trait, T>(
&'life0 self,
entity: T,
) -> Pin<Box<dyn Future<Output = Result<u64, Error>> + Send + 'async_trait>>
fn delete<'life0, 'async_trait, T>( &'life0 self, entity: T, ) -> Pin<Box<dyn Future<Output = Result<u64, Error>> + Send + 'async_trait>>
Veritabanından bir kaydı siler. Read more
Source§fn get<'life0, 'life1, 'async_trait, T>(
&'life0 self,
params: &'life1 T,
) -> Pin<Box<dyn Future<Output = Result<T, Error>> + Send + 'async_trait>>
fn get<'life0, 'life1, 'async_trait, T>( &'life0 self, params: &'life1 T, ) -> Pin<Box<dyn Future<Output = Result<T, Error>> + Send + 'async_trait>>
Belirtilen kriterlere uygun tek bir kaydı getirir. Read more
Source§fn get_all<'life0, 'life1, 'async_trait, T>(
&'life0 self,
params: &'life1 T,
) -> Pin<Box<dyn Future<Output = Result<Vec<T>, Error>> + Send + 'async_trait>>
fn get_all<'life0, 'life1, 'async_trait, T>( &'life0 self, params: &'life1 T, ) -> Pin<Box<dyn Future<Output = Result<Vec<T>, Error>> + Send + 'async_trait>>
Belirtilen kriterlere uygun tüm kayıtları getirir. Read more
Source§fn select<'life0, 'async_trait, T, R, F>(
&'life0 self,
entity: T,
to_model: F,
) -> Pin<Box<dyn Future<Output = Result<R, Error>> + Send + 'async_trait>>
fn select<'life0, 'async_trait, T, R, F>( &'life0 self, entity: T, to_model: F, ) -> Pin<Box<dyn Future<Output = Result<R, Error>> + Send + 'async_trait>>
Belirtilen özel dönüşüm fonksiyonunu kullanarak tek bir kaydı getirir. Read more