Skip to main content

RendererConfig

Struct RendererConfig 

Source
pub struct RendererConfig<'a> {
Show 18 fields pub root: &'a Path, pub macros: &'a [PathBuf], pub context: RunContext, pub vars: Map<String, Value>, pub cli_vars: BTreeMap<String, String>, pub runner: Option<Arc<dyn QueryRunner>>, pub connections: Option<Arc<dyn Connections>>, pub mode: Mode, pub connection: Option<String>, pub source_type: String, pub sources: Option<SourceResolver>, pub run_query_max_rows: u64, pub sql: BTreeMap<String, PathBuf>, pub lookups: BTreeMap<String, Lookup>, pub lookup_inline_max_rows: u64, pub packages: Vec<Package>, pub project_name: String, pub dispatch: DispatchOrder,
}

Fields§

§root: &'a Path§macros: &'a [PathBuf]§context: RunContext§vars: Map<String, Value>

The Binding’s merged vars.

§cli_vars: BTreeMap<String, String>

--var overrides, highest precedence.

§runner: Option<Arc<dyn QueryRunner>>§connections: Option<Arc<dyn Connections>>

Profiles for connection, destination and profile(); None offline.

§mode: Mode§connection: Option<String>

The connection connection.* reads and run_query() uses by default: the query’s in query SQL, the Binding’s inherited one elsewhere.

§source_type: String

That connection’s plugin type, for dispatch() and source quoting; empty when unknown.

§sources: Option<SourceResolver>

source(); None: the project declares no sources.

§run_query_max_rows: u64§sql: BTreeMap<String, PathBuf>

Every .sql file ref() can name, by basename, relative to root.

§lookups: BTreeMap<String, Lookup>

Lookups ref() and lookup() can name.

§lookup_inline_max_rows: u64§packages: Vec<Package>

Macro packages, imported under their names.

§project_name: String

The project’s name: the root namespace in dispatch() search orders.

§dispatch: DispatchOrder

Auto Trait Implementations§

§

impl<'a> !RefUnwindSafe for RendererConfig<'a>

§

impl<'a> !UnwindSafe for RendererConfig<'a>

§

impl<'a> Freeze for RendererConfig<'a>

§

impl<'a> Send for RendererConfig<'a>

§

impl<'a> Sync for RendererConfig<'a>

§

impl<'a> Unpin for RendererConfig<'a>

§

impl<'a> UnsafeUnpin for RendererConfig<'a>

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
where ST: ?Sized, DT: ?Sized,

Source§

impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
where ST: ?Sized, DT: ?Sized,

Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> Read<Exclusive, BecauseExclusive> for T
where T: ?Sized,

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.