pub struct SqlxConfig {Show 17 fields
pub action_type: Option<String>,
pub schema: Option<String>,
pub database: Option<String>,
pub name: Option<String>,
pub tags: Vec<String>,
pub disabled: Option<bool>,
pub protected: Option<bool>,
pub has_output: Option<bool>,
pub description: Option<String>,
pub columns: IndexMap<String, SqlxColumn>,
pub dependencies: Vec<SqlxDependency>,
pub bigquery: SqlxBigQuery,
pub assertions: SqlxAssertions,
pub unique_key: Vec<String>,
pub computed: Vec<String>,
pub problems: Vec<String>,
pub raw: IndexMap<String, JsValue>,
}Expand description
What a config block says, read without running it.
Fields§
§action_type: Option<String>type (table, view, incremental, operations, assertion, declaration, test).
schema: Option<String>§database: Option<String>§name: Option<String>§disabled: Option<bool>§protected: Option<bool>§has_output: Option<bool>§description: Option<String>§columns: IndexMap<String, SqlxColumn>§dependencies: Vec<SqlxDependency>§bigquery: SqlxBigQuery§assertions: SqlxAssertions§unique_key: Vec<String>A top-level uniqueKey (incremental tables).
computed: Vec<String>Keys whose values are computed (only known by running the project).
problems: Vec<String>What Dataform’s compiler would reject: an unknown type or a key the type does not accept.
raw: IndexMap<String, JsValue>The whole config as read.
Implementations§
Source§impl SqlxConfig
impl SqlxConfig
Sourcepub fn effective_type(&self) -> &str
pub fn effective_type(&self) -> &str
The action type, table when none is given.
Trait Implementations§
Source§impl Clone for SqlxConfig
impl Clone for SqlxConfig
Source§impl Debug for SqlxConfig
impl Debug for SqlxConfig
Source§impl Default for SqlxConfig
impl Default for SqlxConfig
Source§impl<'de> Deserialize<'de> for SqlxConfig
impl<'de> Deserialize<'de> for SqlxConfig
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 Eq for SqlxConfig
Source§impl PartialEq for SqlxConfig
impl PartialEq for SqlxConfig
Source§impl Serialize for SqlxConfig
impl Serialize for SqlxConfig
impl StructuralPartialEq for SqlxConfig
Auto Trait Implementations§
impl Forget for SqlxConfig
impl Freeze for SqlxConfigwhere
*const u8 is !null: Freeze,
PhantomData<u8>: Freeze,
PhantomData<String>: Freeze,
PhantomData<usize>: Freeze,
PhantomData<Bucket<String, SqlxColumn>>: Freeze,
PhantomData<SqlxDependency>: Freeze,
PhantomData<Bucket<String, String>>: Freeze,
PhantomData<Vec<String>>: Freeze,
PhantomData<Bucket<String, JsValue>>: Freeze,
impl Move for SqlxConfig
impl RefUnwindSafe for SqlxConfig
impl Send for SqlxConfig
impl Sync for SqlxConfig
impl Unpin for SqlxConfig
impl UnsafeUnpin for SqlxConfigwhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
PhantomData<String>: UnsafeUnpin,
PhantomData<usize>: UnsafeUnpin,
PhantomData<Bucket<String, SqlxColumn>>: UnsafeUnpin,
PhantomData<SqlxDependency>: UnsafeUnpin,
PhantomData<Bucket<String, String>>: UnsafeUnpin,
PhantomData<Vec<String>>: UnsafeUnpin,
PhantomData<Bucket<String, JsValue>>: UnsafeUnpin,
impl UnwindSafe for SqlxConfig
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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
Compare self to
key and return true if they are equal.