pub struct HttpDatabaseRepository { /* private fields */ }
Expand description
HTTP implementation of DatabaseRepository
Implementations§
Source§impl HttpDatabaseRepository
impl HttpDatabaseRepository
Sourcepub fn new(http_provider: Arc<dyn HttpProviderSafe>) -> Self
pub fn new(http_provider: Arc<dyn HttpProviderSafe>) -> Self
Creates a new HttpDatabaseRepository
Trait Implementations§
Source§impl DatabaseRepository for HttpDatabaseRepository
impl DatabaseRepository for HttpDatabaseRepository
Source§fn sync_database_schema<'life0, 'life1, 'async_trait>(
&'life0 self,
id: &'life1 MetabaseId,
) -> Pin<Box<dyn Future<Output = RepositoryResult<SyncResult>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn sync_database_schema<'life0, 'life1, 'async_trait>(
&'life0 self,
id: &'life1 MetabaseId,
) -> Pin<Box<dyn Future<Output = RepositoryResult<SyncResult>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Sync database schema
Source§fn get_database_fields<'life0, 'life1, 'async_trait>(
&'life0 self,
id: &'life1 MetabaseId,
) -> Pin<Box<dyn Future<Output = RepositoryResult<Vec<Field>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn get_database_fields<'life0, 'life1, 'async_trait>(
&'life0 self,
id: &'life1 MetabaseId,
) -> Pin<Box<dyn Future<Output = RepositoryResult<Vec<Field>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Get database fields
Source§fn get_database_schemas<'life0, 'life1, 'async_trait>(
&'life0 self,
id: &'life1 MetabaseId,
) -> Pin<Box<dyn Future<Output = RepositoryResult<Vec<String>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn get_database_schemas<'life0, 'life1, 'async_trait>(
&'life0 self,
id: &'life1 MetabaseId,
) -> Pin<Box<dyn Future<Output = RepositoryResult<Vec<String>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Get database schemas
Source§fn list_with_filters<'life0, 'async_trait>(
&'life0 self,
pagination: Option<PaginationParams>,
filters: Option<DatabaseFilterParams>,
) -> Pin<Box<dyn Future<Output = RepositoryResult<Vec<DatabaseMetadata>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn list_with_filters<'life0, 'async_trait>(
&'life0 self,
pagination: Option<PaginationParams>,
filters: Option<DatabaseFilterParams>,
) -> Pin<Box<dyn Future<Output = RepositoryResult<Vec<DatabaseMetadata>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
List databases with specific filters
Source§impl Repository for HttpDatabaseRepository
impl Repository for HttpDatabaseRepository
Source§type Entity = DatabaseMetadata
type Entity = DatabaseMetadata
The entity type this repository manages
Source§type Id = MetabaseId
type Id = MetabaseId
The ID type for entities
Source§fn get<'life0, 'life1, 'async_trait>(
&'life0 self,
id: &'life1 Self::Id,
) -> Pin<Box<dyn Future<Output = RepositoryResult<Self::Entity>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn get<'life0, 'life1, 'async_trait>(
&'life0 self,
id: &'life1 Self::Id,
) -> Pin<Box<dyn Future<Output = RepositoryResult<Self::Entity>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Get an entity by ID
Source§fn list<'life0, 'async_trait>(
&'life0 self,
pagination: Option<PaginationParams>,
_filters: Option<FilterParams>,
) -> Pin<Box<dyn Future<Output = RepositoryResult<Vec<Self::Entity>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn list<'life0, 'async_trait>(
&'life0 self,
pagination: Option<PaginationParams>,
_filters: Option<FilterParams>,
) -> Pin<Box<dyn Future<Output = RepositoryResult<Vec<Self::Entity>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
List entities with optional pagination and filters
Source§fn create<'life0, 'life1, 'async_trait>(
&'life0 self,
_entity: &'life1 Self::Entity,
) -> Pin<Box<dyn Future<Output = RepositoryResult<Self::Entity>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn create<'life0, 'life1, 'async_trait>(
&'life0 self,
_entity: &'life1 Self::Entity,
) -> Pin<Box<dyn Future<Output = RepositoryResult<Self::Entity>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Create a new entity
Source§fn update<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
_id: &'life1 Self::Id,
_entity: &'life2 Self::Entity,
) -> Pin<Box<dyn Future<Output = RepositoryResult<Self::Entity>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn update<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
_id: &'life1 Self::Id,
_entity: &'life2 Self::Entity,
) -> Pin<Box<dyn Future<Output = RepositoryResult<Self::Entity>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Update an existing entity
Source§fn delete<'life0, 'life1, 'async_trait>(
&'life0 self,
_id: &'life1 Self::Id,
) -> Pin<Box<dyn Future<Output = RepositoryResult<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn delete<'life0, 'life1, 'async_trait>(
&'life0 self,
_id: &'life1 Self::Id,
) -> Pin<Box<dyn Future<Output = RepositoryResult<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Delete an entity
Auto Trait Implementations§
impl Freeze for HttpDatabaseRepository
impl !RefUnwindSafe for HttpDatabaseRepository
impl Send for HttpDatabaseRepository
impl Sync for HttpDatabaseRepository
impl Unpin for HttpDatabaseRepository
impl !UnwindSafe for HttpDatabaseRepository
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more