Trait lightspeed_cms::repository::CmsRepositoryManager[][src]

pub trait CmsRepositoryManager: Clone + Send + Sync {
    type Conn: SqlConnection;
    type C3P0: C3p0Pool<Conn = Self::Conn>;
    type ContentRepo: ContentRepository<Conn = Self::Conn>;
    type ProjectRepo: ProjectRepository<Conn = Self::Conn>;
    type SchemaRepo: SchemaRepository<Conn = Self::Conn>;
    fn c3p0(&self) -> &Self::C3P0;
#[must_use] fn start<'life0, 'async_trait>(
        &'life0 self
    ) -> Pin<Box<dyn Future<Output = Result<(), LightSpeedError>> + Send + 'async_trait>>
    where
        'life0: 'async_trait,
        Self: 'async_trait
;
fn content_repo(&self, qualified_table_name: &str) -> Self::ContentRepo;
fn project_repo(&self) -> Self::ProjectRepo;
fn schema_repo(&self) -> Self::SchemaRepo; }

Associated Types

type Conn: SqlConnection[src]

type C3P0: C3p0Pool<Conn = Self::Conn>[src]

type ContentRepo: ContentRepository<Conn = Self::Conn>[src]

type ProjectRepo: ProjectRepository<Conn = Self::Conn>[src]

type SchemaRepo: SchemaRepository<Conn = Self::Conn>[src]

Loading content...

Required methods

fn c3p0(&self) -> &Self::C3P0[src]

#[must_use]fn start<'life0, 'async_trait>(
    &'life0 self
) -> Pin<Box<dyn Future<Output = Result<(), LightSpeedError>> + Send + 'async_trait>> where
    'life0: 'async_trait,
    Self: 'async_trait, 
[src]

fn content_repo(&self, qualified_table_name: &str) -> Self::ContentRepo[src]

fn project_repo(&self) -> Self::ProjectRepo[src]

fn schema_repo(&self) -> Self::SchemaRepo[src]

Loading content...

Implementors

impl CmsRepositoryManager for PgCmsRepositoryManager[src]

type Conn = PgConnection

type C3P0 = PgC3p0Pool

type ContentRepo = PgContentRepository

type ProjectRepo = PgProjectRepository

type SchemaRepo = PgSchemaRepository

Loading content...