pub struct DatabaseSection {
pub backend_type: Option<String>,
pub database: Option<String>,
pub output_location: Option<String>,
pub workgroup: Option<String>,
pub query_timeout_ms: Option<u64>,
pub tables: Vec<DatabaseTableDecl>,
pub url: Option<String>,
pub file_path: Option<String>,
pub pool: Option<DatabasePoolSection>,
}Expand description
[database] section — backend identification and table catalogue.
Includes Athena-specific keys (output_location, workgroup) as optional
fields per the REF-01 superset invariant — non-Athena backends omit them.
Fields§
§backend_type: Option<String>Backend type ("athena", "postgres", "mysql", "sqlite", …).
database: Option<String>Database / schema name.
output_location: Option<String>Athena S3 output location for query results.
workgroup: Option<String>Athena workgroup name.
query_timeout_ms: Option<u64>Per-query timeout in milliseconds.
tables: Vec<DatabaseTableDecl>[[database.tables]] — declared table catalogue for schema enrichment.
url: Option<String>Connection URL for Postgres / MySQL backends. Supports env:VAR_NAME
indirection at the consumer-resolution layer (the toolkit parses the
string as-is and leaves resolution to the per-backend connector or
the secret-resolution machinery from P83 R6/R9). Optional/unused for
Athena (uses region + workgroup + output_location) and SQLite
(uses database for the file path or :memory: literal).
file_path: Option<String>Filesystem path to a SQLite database file (e.g.
"/var/task/assets/chinook.db" for a Lambda-bundled asset). Additive per
the REF-01 superset invariant (Plan 85-01). Distinct from database
(which carries the :memory: literal or a schema name) and url (used
by Postgres / MySQL). Stored verbatim; the SQLite connector resolves it.
pool: Option<DatabasePoolSection>[database.pool] — connection-pool tuning (optional).
Trait Implementations§
Source§impl Clone for DatabaseSection
impl Clone for DatabaseSection
Source§fn clone(&self) -> DatabaseSection
fn clone(&self) -> DatabaseSection
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for DatabaseSection
impl Debug for DatabaseSection
Source§impl Default for DatabaseSection
impl Default for DatabaseSection
Source§fn default() -> DatabaseSection
fn default() -> DatabaseSection
Source§impl<'de> Deserialize<'de> for DatabaseSection
impl<'de> Deserialize<'de> for DatabaseSection
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>,
Source§impl PartialEq for DatabaseSection
impl PartialEq for DatabaseSection
Source§fn eq(&self, other: &DatabaseSection) -> bool
fn eq(&self, other: &DatabaseSection) -> bool
self and other values to be equal, and is used by ==.Source§impl Serialize for DatabaseSection
impl Serialize for DatabaseSection
impl Eq for DatabaseSection
impl StructuralPartialEq for DatabaseSection
Auto Trait Implementations§
impl Freeze for DatabaseSection
impl RefUnwindSafe for DatabaseSection
impl Send for DatabaseSection
impl Sync for DatabaseSection
impl Unpin for DatabaseSection
impl UnsafeUnpin for DatabaseSection
impl UnwindSafe for DatabaseSection
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more