pub struct Database {
pub id: MetabaseId,
pub name: String,
pub engine: String,
pub details: Value,
pub is_full_sync: bool,
pub is_on_demand: bool,
pub is_sample: bool,
pub cache_field_values_schedule: Option<String>,
pub metadata_sync_schedule: Option<String>,
pub created_at: Option<DateTime<Utc>>,
pub updated_at: Option<DateTime<Utc>>,
}
Expand description
Represents a Metabase database connection
Fields§
§id: MetabaseId
Unique identifier for the database
name: String
Database name
engine: String
Database engine (e.g., “postgres”, “mysql”, “h2”)
details: Value
Connection details (host, port, database name, etc.)
is_full_sync: bool
Whether full sync is enabled
is_on_demand: bool
Whether on-demand sync is enabled
is_sample: bool
Whether the database is a sample database
cache_field_values_schedule: Option<String>
Cache field values for this database
metadata_sync_schedule: Option<String>
Metadata sync schedule
created_at: Option<DateTime<Utc>>
When the database was created
updated_at: Option<DateTime<Utc>>
When the database was last updated
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Database
impl<'de> Deserialize<'de> for Database
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl StructuralPartialEq for Database
Auto Trait Implementations§
impl Freeze for Database
impl RefUnwindSafe for Database
impl Send for Database
impl Sync for Database
impl Unpin for Database
impl UnwindSafe for Database
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