pub struct Source {Show 17 fields
pub name: Option<Loose<String>>,
pub description: Option<Loose<Text>>,
pub database: Option<Loose<Text>>,
pub schema: Option<Loose<Text>>,
pub profile: Option<Loose<Text>>,
pub quoting: Option<Loose<Quoting>>,
pub tags: Option<Loose<Tags>>,
pub meta: Option<Loose<Meta>>,
pub tables: Option<Loose<Option<Vec<TableItem>>>>,
pub loader: Option<IgnoredAny>,
pub loaded_at_field: Option<IgnoredAny>,
pub loaded_at_query: Option<IgnoredAny>,
pub config: Option<IgnoredAny>,
pub overrides: Option<IgnoredAny>,
pub freshness: Option<IgnoredAny>,
pub docs: Option<IgnoredAny>,
pub unknown: UnknownKeys,
}Expand description
A source: tables in one schema of one system.
Fields§
§name: Option<Loose<String>>The source’s name, the first argument of source(). Unique in the project.
description: Option<Loose<Text>>What the source is.
database: Option<Loose<Text>>The database (catalog). Set: source() renders database.schema.table; unset: schema.table. May use Jinja with var(), env_var(), run.* and target.name.
schema: Option<Loose<Text>>The schema; the source’s name unless set. May use Jinja with var(), env_var(), run.* and target.name.
profile: Option<Loose<Text>>DRE’s addition: the connection (in profiles.yml) the source lives on. A query using the source runs there; it overrides the report’s, Set’s, folder’s and project’s default. Unset: the source runs wherever its query runs. May use Jinja with var(), env_var(), run.* and target.name.
quoting: Option<Loose<Quoting>>§meta: Option<Loose<Meta>>§tables: Option<Loose<Option<Vec<TableItem>>>>The source’s tables.
loader: Option<IgnoredAny>A dbt key DRE accepts but doesn’t use yet (noted by dre validate).
loaded_at_field: Option<IgnoredAny>A dbt key DRE accepts but doesn’t use yet (noted by dre validate).
loaded_at_query: Option<IgnoredAny>A dbt key DRE accepts but doesn’t use yet (noted by dre validate).
config: Option<IgnoredAny>A dbt key DRE accepts but doesn’t use yet (noted by dre validate).
overrides: Option<IgnoredAny>A dbt key DRE accepts but doesn’t use yet (noted by dre validate).
freshness: Option<IgnoredAny>A dbt key DRE accepts but doesn’t use yet (noted by dre validate).
docs: Option<IgnoredAny>A dbt key DRE accepts but doesn’t use yet (noted by dre validate).
unknown: UnknownKeysImplementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Source
impl<'de> Deserialize<'de> for Source
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 JsonSchema for Source
impl JsonSchema for Source
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
$ref keyword. Read more