pub struct HttpDatabaseService { /* private fields */ }
Expand description
HTTP implementation of DatabaseService
Implementations§
Source§impl HttpDatabaseService
impl HttpDatabaseService
Sourcepub fn new(repository: Arc<dyn DatabaseRepository>) -> Self
pub fn new(repository: Arc<dyn DatabaseRepository>) -> Self
Creates a new HttpDatabaseService
Sourcepub fn from_http_provider(http_provider: Arc<dyn HttpProviderSafe>) -> Self
pub fn from_http_provider(http_provider: Arc<dyn HttpProviderSafe>) -> Self
Creates a new HttpDatabaseService from HTTP provider
Trait Implementations§
Source§impl DatabaseService for HttpDatabaseService
impl DatabaseService for HttpDatabaseService
Source§fn get_database_metadata<'life0, 'async_trait>(
&'life0 self,
id: MetabaseId,
) -> Pin<Box<dyn Future<Output = ServiceResult<DatabaseMetadata>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn get_database_metadata<'life0, 'async_trait>(
&'life0 self,
id: MetabaseId,
) -> Pin<Box<dyn Future<Output = ServiceResult<DatabaseMetadata>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Get database metadata
Source§fn sync_database_schema<'life0, 'async_trait>(
&'life0 self,
id: MetabaseId,
) -> Pin<Box<dyn Future<Output = ServiceResult<SyncResult>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn sync_database_schema<'life0, 'async_trait>(
&'life0 self,
id: MetabaseId,
) -> Pin<Box<dyn Future<Output = ServiceResult<SyncResult>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Sync database schema
Source§fn get_database_fields<'life0, 'async_trait>(
&'life0 self,
id: MetabaseId,
) -> Pin<Box<dyn Future<Output = ServiceResult<Vec<Field>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn get_database_fields<'life0, 'async_trait>(
&'life0 self,
id: MetabaseId,
) -> Pin<Box<dyn Future<Output = ServiceResult<Vec<Field>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Get database fields
Source§fn get_database_schemas<'life0, 'async_trait>(
&'life0 self,
id: MetabaseId,
) -> Pin<Box<dyn Future<Output = ServiceResult<Vec<String>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn get_database_schemas<'life0, 'async_trait>(
&'life0 self,
id: MetabaseId,
) -> Pin<Box<dyn Future<Output = ServiceResult<Vec<String>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Get database schemas
Source§fn list_databases<'life0, 'async_trait>(
&'life0 self,
pagination: Option<PaginationParams>,
filters: Option<DatabaseFilterParams>,
) -> Pin<Box<dyn Future<Output = ServiceResult<Vec<DatabaseMetadata>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn list_databases<'life0, 'async_trait>(
&'life0 self,
pagination: Option<PaginationParams>,
filters: Option<DatabaseFilterParams>,
) -> Pin<Box<dyn Future<Output = ServiceResult<Vec<DatabaseMetadata>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
List databases
Source§fn validate_database_id<'life0, 'async_trait>(
&'life0 self,
id: MetabaseId,
) -> Pin<Box<dyn Future<Output = ServiceResult<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn validate_database_id<'life0, 'async_trait>(
&'life0 self,
id: MetabaseId,
) -> Pin<Box<dyn Future<Output = ServiceResult<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Validate database ID
Source§impl Service for HttpDatabaseService
impl Service for HttpDatabaseService
Auto Trait Implementations§
impl Freeze for HttpDatabaseService
impl !RefUnwindSafe for HttpDatabaseService
impl Send for HttpDatabaseService
impl Sync for HttpDatabaseService
impl Unpin for HttpDatabaseService
impl !UnwindSafe for HttpDatabaseService
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