[−][src]Trait lightspeed_cms::repository::ContentRepository
Associated Types
type Conn
Required methods
#[must_use]fn create_table<'life0, 'life1, 'async_trait>(
&'life0 self,
conn: &'life1 mut Self::Conn
) -> Pin<Box<dyn Future<Output = Result<(), LightSpeedError>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
&'life0 self,
conn: &'life1 mut Self::Conn
) -> Pin<Box<dyn Future<Output = Result<(), LightSpeedError>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
#[must_use]fn drop_table<'life0, 'life1, 'async_trait>(
&'life0 self,
conn: &'life1 mut Self::Conn
) -> Pin<Box<dyn Future<Output = Result<(), LightSpeedError>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
&'life0 self,
conn: &'life1 mut Self::Conn
) -> Pin<Box<dyn Future<Output = Result<(), LightSpeedError>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
#[must_use]fn count_all<'life0, 'life1, 'async_trait>(
&'life0 self,
conn: &'life1 mut Self::Conn
) -> Pin<Box<dyn Future<Output = Result<u64, LightSpeedError>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
&'life0 self,
conn: &'life1 mut Self::Conn
) -> Pin<Box<dyn Future<Output = Result<u64, LightSpeedError>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
#[must_use]fn count_all_by_field_value<'life0, 'life1, 'life2, 'life3, 'async_trait>(
&'life0 self,
conn: &'life1 mut Self::Conn,
field_name: &'life2 str,
field_value: &'life3 str
) -> Pin<Box<dyn Future<Output = Result<u64, LightSpeedError>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
Self: 'async_trait,
&'life0 self,
conn: &'life1 mut Self::Conn,
field_name: &'life2 str,
field_value: &'life3 str
) -> Pin<Box<dyn Future<Output = Result<u64, LightSpeedError>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
Self: 'async_trait,
#[must_use]fn create_unique_constraint<'life0, 'life1, 'life2, 'life3, 'async_trait>(
&'life0 self,
conn: &'life1 mut Self::Conn,
index_name: &'life2 str,
field_name: &'life3 str
) -> Pin<Box<dyn Future<Output = Result<(), LightSpeedError>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
Self: 'async_trait,
&'life0 self,
conn: &'life1 mut Self::Conn,
index_name: &'life2 str,
field_name: &'life3 str
) -> Pin<Box<dyn Future<Output = Result<(), LightSpeedError>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
Self: 'async_trait,
#[must_use]fn drop_unique_constraint<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
conn: &'life1 mut Self::Conn,
index_name: &'life2 str
) -> Pin<Box<dyn Future<Output = Result<(), LightSpeedError>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Self: 'async_trait,
&'life0 self,
conn: &'life1 mut Self::Conn,
index_name: &'life2 str
) -> Pin<Box<dyn Future<Output = Result<(), LightSpeedError>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Self: 'async_trait,
#[must_use]fn fetch_by_id<'life0, 'life1, 'async_trait>(
&'life0 self,
conn: &'life1 mut Self::Conn,
id: i64
) -> Pin<Box<dyn Future<Output = Result<ContentModel, LightSpeedError>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
&'life0 self,
conn: &'life1 mut Self::Conn,
id: i64
) -> Pin<Box<dyn Future<Output = Result<ContentModel, LightSpeedError>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
#[must_use]fn save<'life0, 'life1, 'async_trait>(
&'life0 self,
conn: &'life1 mut Self::Conn,
model: NewModel<ContentData>
) -> Pin<Box<dyn Future<Output = Result<ContentModel, LightSpeedError>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
&'life0 self,
conn: &'life1 mut Self::Conn,
model: NewModel<ContentData>
) -> Pin<Box<dyn Future<Output = Result<ContentModel, LightSpeedError>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
#[must_use]fn update<'life0, 'life1, 'async_trait>(
&'life0 self,
conn: &'life1 mut Self::Conn,
model: ContentModel
) -> Pin<Box<dyn Future<Output = Result<ContentModel, LightSpeedError>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
&'life0 self,
conn: &'life1 mut Self::Conn,
model: ContentModel
) -> Pin<Box<dyn Future<Output = Result<ContentModel, LightSpeedError>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
#[must_use]fn delete<'life0, 'life1, 'async_trait>(
&'life0 self,
conn: &'life1 mut Self::Conn,
model: ContentModel
) -> Pin<Box<dyn Future<Output = Result<ContentModel, LightSpeedError>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
&'life0 self,
conn: &'life1 mut Self::Conn,
model: ContentModel
) -> Pin<Box<dyn Future<Output = Result<ContentModel, LightSpeedError>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
Implementors
impl ContentRepository for PgContentRepository
[src]
type Conn = PgConnection
fn create_table<'life0, 'life1, 'async_trait>(
&'life0 self,
conn: &'life1 mut Self::Conn
) -> Pin<Box<dyn Future<Output = Result<(), LightSpeedError>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
[src]
&'life0 self,
conn: &'life1 mut Self::Conn
) -> Pin<Box<dyn Future<Output = Result<(), LightSpeedError>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
fn drop_table<'life0, 'life1, 'async_trait>(
&'life0 self,
conn: &'life1 mut Self::Conn
) -> Pin<Box<dyn Future<Output = Result<(), LightSpeedError>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
[src]
&'life0 self,
conn: &'life1 mut Self::Conn
) -> Pin<Box<dyn Future<Output = Result<(), LightSpeedError>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
fn count_all<'life0, 'life1, 'async_trait>(
&'life0 self,
conn: &'life1 mut Self::Conn
) -> Pin<Box<dyn Future<Output = Result<u64, LightSpeedError>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
[src]
&'life0 self,
conn: &'life1 mut Self::Conn
) -> Pin<Box<dyn Future<Output = Result<u64, LightSpeedError>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
fn count_all_by_field_value<'life0, 'life1, 'life2, 'life3, 'async_trait>(
&'life0 self,
conn: &'life1 mut Self::Conn,
field_name: &'life2 str,
field_value: &'life3 str
) -> Pin<Box<dyn Future<Output = Result<u64, LightSpeedError>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
Self: 'async_trait,
[src]
&'life0 self,
conn: &'life1 mut Self::Conn,
field_name: &'life2 str,
field_value: &'life3 str
) -> Pin<Box<dyn Future<Output = Result<u64, LightSpeedError>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
Self: 'async_trait,
fn create_unique_constraint<'life0, 'life1, 'life2, 'life3, 'async_trait>(
&'life0 self,
conn: &'life1 mut Self::Conn,
index_name: &'life2 str,
field_name: &'life3 str
) -> Pin<Box<dyn Future<Output = Result<(), LightSpeedError>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
Self: 'async_trait,
[src]
&'life0 self,
conn: &'life1 mut Self::Conn,
index_name: &'life2 str,
field_name: &'life3 str
) -> Pin<Box<dyn Future<Output = Result<(), LightSpeedError>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
Self: 'async_trait,
fn drop_unique_constraint<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
conn: &'life1 mut Self::Conn,
index_name: &'life2 str
) -> Pin<Box<dyn Future<Output = Result<(), LightSpeedError>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Self: 'async_trait,
[src]
&'life0 self,
conn: &'life1 mut Self::Conn,
index_name: &'life2 str
) -> Pin<Box<dyn Future<Output = Result<(), LightSpeedError>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Self: 'async_trait,
fn fetch_by_id<'life0, 'life1, 'async_trait>(
&'life0 self,
conn: &'life1 mut Self::Conn,
id: i64
) -> Pin<Box<dyn Future<Output = Result<Model<ContentData>, LightSpeedError>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
[src]
&'life0 self,
conn: &'life1 mut Self::Conn,
id: i64
) -> Pin<Box<dyn Future<Output = Result<Model<ContentData>, LightSpeedError>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
fn save<'life0, 'life1, 'async_trait>(
&'life0 self,
conn: &'life1 mut Self::Conn,
model: NewModel<ContentData>
) -> Pin<Box<dyn Future<Output = Result<Model<ContentData>, LightSpeedError>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
[src]
&'life0 self,
conn: &'life1 mut Self::Conn,
model: NewModel<ContentData>
) -> Pin<Box<dyn Future<Output = Result<Model<ContentData>, LightSpeedError>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
fn update<'life0, 'life1, 'async_trait>(
&'life0 self,
conn: &'life1 mut Self::Conn,
model: Model<ContentData>
) -> Pin<Box<dyn Future<Output = Result<Model<ContentData>, LightSpeedError>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
[src]
&'life0 self,
conn: &'life1 mut Self::Conn,
model: Model<ContentData>
) -> Pin<Box<dyn Future<Output = Result<Model<ContentData>, LightSpeedError>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
fn delete<'life0, 'life1, 'async_trait>(
&'life0 self,
conn: &'life1 mut Self::Conn,
model: Model<ContentData>
) -> Pin<Box<dyn Future<Output = Result<Model<ContentData>, LightSpeedError>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
[src]
&'life0 self,
conn: &'life1 mut Self::Conn,
model: Model<ContentData>
) -> Pin<Box<dyn Future<Output = Result<Model<ContentData>, LightSpeedError>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,