pub enum RelationSource {
Csv {
path: String,
has_header: bool,
},
Jsonl {
path: String,
},
Values {
columns: Vec<String>,
rows: Vec<Vec<Value>>,
},
}Expand description
The data source for a reference relation.
Variants§
Csv
Delimited file loaded via DuckDB read_csv_auto.
Fields
Jsonl
Newline-delimited JSON loaded via DuckDB read_json_auto.
Fields
Values
Inline rows materialized into a table.
Trait Implementations§
Source§impl Clone for RelationSource
impl Clone for RelationSource
Source§fn clone(&self) -> RelationSource
fn clone(&self) -> RelationSource
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for RelationSource
impl Debug for RelationSource
Source§impl<'de> Deserialize<'de> for RelationSource
impl<'de> Deserialize<'de> for RelationSource
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
Source§impl JsonSchema for RelationSource
impl JsonSchema for RelationSource
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref keyword. Read moreAuto Trait Implementations§
impl Freeze for RelationSource
impl RefUnwindSafe for RelationSource
impl Send for RelationSource
impl Sync for RelationSource
impl Unpin for RelationSource
impl UnsafeUnpin for RelationSource
impl UnwindSafe for RelationSource
Blanket Implementations§
impl<T> Allocation for T
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