Struct datafusion::execution::context::SQLOptions
source · pub struct SQLOptions { /* private fields */ }
Expand description
Describes which SQL statements can be run.
See SessionContext::sql_with_options
for more details.
Implementations§
source§impl SQLOptions
impl SQLOptions
sourcepub fn with_allow_ddl(self, allow: bool) -> Self
pub fn with_allow_ddl(self, allow: bool) -> Self
Should DML data modification commands (e.g. INSERT and COPY
) be run? Defaults to true
.
sourcepub fn with_allow_dml(self, allow: bool) -> Self
pub fn with_allow_dml(self, allow: bool) -> Self
Should DML data modification commands (e.g. INSERT and COPY
) be run? Defaults to true
sourcepub fn with_allow_statements(self, allow: bool) -> Self
pub fn with_allow_statements(self, allow: bool) -> Self
Should Statements such as (e.g. SET VARIABLE and
BEGIN TRANSACTION ...
) be run?. Defaults to true
sourcepub fn verify_plan(&self, plan: &LogicalPlan) -> Result<()>
pub fn verify_plan(&self, plan: &LogicalPlan) -> Result<()>
Return an error if the LogicalPlan
has any nodes that are
incompatible with this SQLOptions
.
Trait Implementations§
source§impl Clone for SQLOptions
impl Clone for SQLOptions
source§fn clone(&self) -> SQLOptions
fn clone(&self) -> SQLOptions
Returns a copy of the value. Read more
1.0.0 · 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 SQLOptions
impl Debug for SQLOptions
source§impl Default for SQLOptions
impl Default for SQLOptions
impl Copy for SQLOptions
Auto Trait Implementations§
impl Freeze for SQLOptions
impl RefUnwindSafe for SQLOptions
impl Send for SQLOptions
impl Sync for SQLOptions
impl Unpin for SQLOptions
impl UnwindSafe for SQLOptions
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> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more