pub struct SqlTransformConfig {
pub query: String,
pub relations: Vec<RelationSpec>,
pub memory_limit: Option<String>,
pub threads: Option<usize>,
}Expand description
Configuration for the sql transform.
Fields§
§query: StringThe SQL statement. The page’s records are the relation batch. Must
produce a result set; each result row becomes one output record.
relations: Vec<RelationSpec>Reference relations loaded once at compile time and joinable by name.
memory_limit: Option<String>Optional DuckDB memory_limit pragma (e.g. “1GB”). Default: DuckDB’s own.
threads: Option<usize>Optional DuckDB threads pragma. Default: DuckDB’s own. Set to 1–2 for
high-fan-out matrices to avoid CPU over-subscription across rows.
Trait Implementations§
Source§impl Clone for SqlTransformConfig
impl Clone for SqlTransformConfig
Source§fn clone(&self) -> SqlTransformConfig
fn clone(&self) -> SqlTransformConfig
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 SqlTransformConfig
impl Debug for SqlTransformConfig
Source§impl<'de> Deserialize<'de> for SqlTransformConfig
impl<'de> Deserialize<'de> for SqlTransformConfig
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 SqlTransformConfig
impl JsonSchema for SqlTransformConfig
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 SqlTransformConfig
impl RefUnwindSafe for SqlTransformConfig
impl Send for SqlTransformConfig
impl Sync for SqlTransformConfig
impl Unpin for SqlTransformConfig
impl UnsafeUnpin for SqlTransformConfig
impl UnwindSafe for SqlTransformConfig
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