Struct datafusion_python::context::PySQLOptions
source · pub struct PySQLOptions {
pub options: SQLOptions,
}Expand description
PySQLOptions allows you to specify options to the sql execution.
Fields§
§options: SQLOptionsImplementations§
source§impl PySQLOptions
impl PySQLOptions
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
Trait Implementations§
source§impl Clone for PySQLOptions
impl Clone for PySQLOptions
source§fn clone(&self) -> PySQLOptions
fn clone(&self) -> PySQLOptions
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 From<SQLOptions> for PySQLOptions
impl From<SQLOptions> for PySQLOptions
source§fn from(options: SQLOptions) -> Self
fn from(options: SQLOptions) -> Self
Converts to this type from the input type.
source§impl PyClassImpl for PySQLOptions
impl PyClassImpl for PySQLOptions
source§const IS_BASETYPE: bool = true
const IS_BASETYPE: bool = true
#[pyclass(subclass)]
source§const IS_SUBCLASS: bool = false
const IS_SUBCLASS: bool = false
#[pyclass(extends=…)]
source§const IS_MAPPING: bool = false
const IS_MAPPING: bool = false
#[pyclass(mapping)]
source§const IS_SEQUENCE: bool = false
const IS_SEQUENCE: bool = false
#[pyclass(sequence)]
§type ThreadChecker = SendablePyClass<PySQLOptions>
type ThreadChecker = SendablePyClass<PySQLOptions>
This handles following two situations: Read more
§type PyClassMutability = <<PyAny as PyClassBaseType>::PyClassMutability as PyClassMutability>::MutableChild
type PyClassMutability = <<PyAny as PyClassBaseType>::PyClassMutability as PyClassMutability>::MutableChild
Immutable or mutable
§type BaseNativeType = PyAny
type BaseNativeType = PyAny
The closest native ancestor. This is
PyAny by default, and when you declare
#[pyclass(extends=PyDict)], it’s PyDict.fn items_iter() -> PyClassItemsIter
fn lazy_type_object() -> &'static LazyTypeObject<Self>
fn dict_offset() -> Option<isize>
fn weaklist_offset() -> Option<isize>
source§impl PyClassNewTextSignature<PySQLOptions> for PyClassImplCollector<PySQLOptions>
impl PyClassNewTextSignature<PySQLOptions> for PyClassImplCollector<PySQLOptions>
fn new_text_signature(self) -> Option<&'static str>
source§impl<'a, 'py> PyFunctionArgument<'a, 'py> for &'a PySQLOptions
impl<'a, 'py> PyFunctionArgument<'a, 'py> for &'a PySQLOptions
source§impl<'a, 'py> PyFunctionArgument<'a, 'py> for &'a mut PySQLOptions
impl<'a, 'py> PyFunctionArgument<'a, 'py> for &'a mut PySQLOptions
source§impl PyMethods<PySQLOptions> for PyClassImplCollector<PySQLOptions>
impl PyMethods<PySQLOptions> for PyClassImplCollector<PySQLOptions>
fn py_methods(self) -> &'static PyClassItems
source§impl PyTypeInfo for PySQLOptions
impl PyTypeInfo for PySQLOptions
§type AsRefTarget = PyCell<PySQLOptions>
type AsRefTarget = PyCell<PySQLOptions>
Utility type to make Py::as_ref work.
source§fn type_object_raw(py: Python<'_>) -> *mut PyTypeObject
fn type_object_raw(py: Python<'_>) -> *mut PyTypeObject
Returns the PyTypeObject instance for this type.
source§fn type_object(py: Python<'_>) -> &PyType
fn type_object(py: Python<'_>) -> &PyType
Returns the safe abstraction over the type object.
source§fn is_type_of(object: &PyAny) -> bool
fn is_type_of(object: &PyAny) -> bool
Checks if
object is an instance of this type or a subclass of this type.source§fn is_exact_type_of(object: &PyAny) -> bool
fn is_exact_type_of(object: &PyAny) -> bool
Checks if
object is an instance of this type.Auto Trait Implementations§
impl Freeze for PySQLOptions
impl RefUnwindSafe for PySQLOptions
impl Send for PySQLOptions
impl Sync for PySQLOptions
impl Unpin for PySQLOptions
impl UnwindSafe for PySQLOptions
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<'a, T> FromPyObject<'a> for T
impl<'a, T> FromPyObject<'a> for T
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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